mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
fixed errornous creation of '//' in image_path in html_image
This commit is contained in:
1
NEWS
1
NEWS
@@ -1,3 +1,4 @@
|
|||||||
|
- fixed errornous creation of '//' in image_path in html_image (messju)
|
||||||
- fix escapement of special chars for key vals in debug
|
- fix escapement of special chars for key vals in debug
|
||||||
console (Monte)
|
console (Monte)
|
||||||
- fixed debug timing logic for config_load (Tom Sommer, Monte)
|
- fixed debug timing logic for config_load (Tom Sommer, Monte)
|
||||||
|
@@ -90,7 +90,7 @@ function smarty_function_html_image($params, &$smarty)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(substr($file,0,1) == DIR_SEP) {
|
if(substr($file,0,1) == DIR_SEP) {
|
||||||
$_image_path = $basedir . DIR_SEP . $file;
|
$_image_path = $basedir . $file;
|
||||||
} else {
|
} else {
|
||||||
$_image_path = $file;
|
$_image_path = $file;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user