libs/plugins/function.html_image.php

This commit is contained in:
messju
2003-06-30 15:41:25 +00:00
parent 0b3b79e9c6
commit f866f04d66
3 changed files with 13 additions and 6 deletions

View File

@@ -94,7 +94,7 @@ function smarty_function_html_image($params, &$smarty)
return;
}
if(substr($file,0,1) == DIRECTORY_SEPARATOR) {
if (substr($file,0,1) == '/') {
$_image_path = $basedir . $file;
} else {
$_image_path = $file;