From 2f711dc16280848238c55e42585df8cf83464b53 Mon Sep 17 00:00:00 2001 From: messju Date: Tue, 24 Jun 2003 15:28:22 +0000 Subject: [PATCH] added parsing of forgotton param "basedir" --- libs/plugins/function.html_image.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/plugins/function.html_image.php b/libs/plugins/function.html_image.php index 0b911853..575d6fdc 100644 --- a/libs/plugins/function.html_image.php +++ b/libs/plugins/function.html_image.php @@ -47,7 +47,7 @@ function smarty_function_html_image($params, &$smarty) $prefix = ''; $suffix = ''; $basedir = isset($GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT']) - ? $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'] : '/'; + ? $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'] : ''; if(strstr($GLOBALS['HTTP_SERVER_VARS']['HTTP_USER_AGENT'], 'Mac')) { $dpi_default = 72; } else { @@ -61,6 +61,7 @@ function smarty_function_html_image($params, &$smarty) case 'height': case 'width': case 'dpi': + case 'basedir': $$_key = $_val; break;