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
f696a29caf
commit
a5835330b6
|
@ -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>
|
2011-02-11 Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
* pandoradb_data.sql: Added new OS: android.
|
* pandoradb_data.sql: Added new OS: android.
|
||||||
|
|
|
@ -1094,9 +1094,8 @@ function print_image ($src, $return = false, $options = false) {
|
||||||
if ($skin_path)
|
if ($skin_path)
|
||||||
$src = $skin_path;
|
$src = $skin_path;
|
||||||
}
|
}
|
||||||
// absolute path to image
|
// path to image
|
||||||
$urlImage = ($config['https'])?'https://':'http://';
|
$src = $config["homeurl"] . '/' . $src;
|
||||||
$src = $urlImage . $config["dbhost"] . $config["homeurl"] . '/' . $src;
|
|
||||||
|
|
||||||
$output = '<img src="'.safe_input ($src).'" '; //safe input necessary to strip out html entities correctly
|
$output = '<img src="'.safe_input ($src).'" '; //safe input necessary to strip out html entities correctly
|
||||||
$style = '';
|
$style = '';
|
||||||
|
|
Loading…
Reference in New Issue