mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
fix width/height parameter index
This commit is contained in:
@@ -85,10 +85,10 @@ function smarty_function_html_image($params, &$smarty)
|
||||
}
|
||||
|
||||
if(!isset($params['width'])) {
|
||||
$width = $_image_data[1];
|
||||
$width = $_image_data[0];
|
||||
}
|
||||
if(!isset($params['height'])) {
|
||||
$height = $_image_data[2];
|
||||
$height = $_image_data[1];
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user