diff --git a/libs/plugins/function.html_image.php b/libs/plugins/function.html_image.php index 081ddfd7..cc16a57e 100644 --- a/libs/plugins/function.html_image.php +++ b/libs/plugins/function.html_image.php @@ -28,6 +28,8 @@ function smarty_function_html_image($params, &$smarty) $height = ''; $width = ''; $extra = ''; + $prefix = ''; + $suffix = ''; $basedir = isset($GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT']) ? $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'] : '/'; @@ -45,6 +47,10 @@ function smarty_function_html_image($params, &$smarty) case 'width': $width = $_val; break; + case 'link': + $prefix = ''; + $suffix = ''; + break; default: $extra .= ' '.$_key.'="'.smarty_function_escape_special_chars($_val).'"'; break; @@ -77,7 +83,7 @@ function smarty_function_html_image($params, &$smarty) $smarty->trigger_error("html_image: '$_image_path' is not a valid image file", E_USER_ERROR); } - return ""; + return $prefix . "" . $suffix; } /* vim: set expandtab: */