From af8335225bdd259f4ee895c3ce9cd35f53e8e8c1 Mon Sep 17 00:00:00 2001 From: mohrt Date: Tue, 1 Feb 2005 18:51:42 +0000 Subject: [PATCH] remove border tag --- libs/plugins/function.html_image.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libs/plugins/function.html_image.php b/libs/plugins/function.html_image.php index e23981a5..7d9239e9 100644 --- a/libs/plugins/function.html_image.php +++ b/libs/plugins/function.html_image.php @@ -15,14 +15,13 @@ * Purpose: format HTML tags for the image
* Input:
* - file = file (and path) of image (required) - * - border = border width (optional, default 0) * - height = image height (optional, default actual height) * - image =image width (optional, default actual width) * - basedir = base directory for absolute paths, default * is environment variable DOCUMENT_ROOT * * Examples: {html_image file="images/masthead.gif"} - * Output: + * Output: * @link http://smarty.php.net/manual/en/language.function.html.image.php {html_image} * (Smarty online manual) * @author Monte Ohrt @@ -40,7 +39,6 @@ function smarty_function_html_image($params, &$smarty) $alt = ''; $file = ''; - $border = 0; $height = ''; $width = ''; $extra = ''; @@ -51,7 +49,6 @@ function smarty_function_html_image($params, &$smarty) foreach($params as $_key => $_val) { switch($_key) { case 'file': - case 'border': case 'height': case 'width': case 'dpi': @@ -134,7 +131,7 @@ function smarty_function_html_image($params, &$smarty) $height = round($height * $_resize); } - return $prefix . ''.$alt.'' . $suffix; + return $prefix . ''.$alt.'' . $suffix; } /* vim: set expandtab: */