added parsing of forgotton param "basedir"

This commit is contained in:
messju
2003-06-24 15:28:22 +00:00
parent 4e81cc42d8
commit 2f711dc162

View File

@@ -47,7 +47,7 @@ function smarty_function_html_image($params, &$smarty)
$prefix = ''; $prefix = '';
$suffix = ''; $suffix = '';
$basedir = isset($GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT']) $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')) { if(strstr($GLOBALS['HTTP_SERVER_VARS']['HTTP_USER_AGENT'], 'Mac')) {
$dpi_default = 72; $dpi_default = 72;
} else { } else {
@@ -61,6 +61,7 @@ function smarty_function_html_image($params, &$smarty)
case 'height': case 'height':
case 'width': case 'width':
case 'dpi': case 'dpi':
case 'basedir':
$$_key = $_val; $$_key = $_val;
break; break;