mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
fixed DIR_SEP in html_image-plugin
This commit is contained in:
@@ -93,7 +93,7 @@ function smarty_function_html_image($params, &$smarty)
|
||||
return;
|
||||
}
|
||||
|
||||
if(substr($file,0,1) == DIR_SEP) {
|
||||
if(substr($file,0,1) == DIRECTORY_SEPARATOR) {
|
||||
$_image_path = $basedir . $file;
|
||||
} else {
|
||||
$_image_path = $file;
|
||||
|
Reference in New Issue
Block a user