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:
juanmanuelr 2011-02-08 12:56:51 +00:00
parent 6d06e65cad
commit 1ff8e2f371
2 changed files with 9 additions and 3 deletions

View File

@ -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.

View File

@ -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 = '';