2011-02-08 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_html.php: Image path in function print_image is now relative. Fixes: #3175265 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3811 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
6d06e65cad
commit
1ff8e2f371
|
@ -1,3 +1,10 @@
|
|||
2011-02-08 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* include/functions_html.php: Image path in function print_image is now
|
||||
relative.
|
||||
|
||||
Fixes: #3175265
|
||||
|
||||
2011-02-11 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* pandoradb_data.sql: Added new OS: android.
|
||||
|
|
|
@ -1094,9 +1094,8 @@ function print_image ($src, $return = false, $options = false) {
|
|||
if ($skin_path)
|
||||
$src = $skin_path;
|
||||
}
|
||||
// absolute path to image
|
||||
$urlImage = ($config['https'])?'https://':'http://';
|
||||
$src = $urlImage . $config["dbhost"] . $config["homeurl"] . '/' . $src;
|
||||
// path to image
|
||||
$src = $config["homeurl"] . '/' . $src;
|
||||
|
||||
$output = '<img src="'.safe_input ($src).'" '; //safe input necessary to strip out html entities correctly
|
||||
$style = '';
|
||||
|
|
Loading…
Reference in New Issue