mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-02 13:21:36 +01:00
libs/plugins/function.html_image.php
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user