smarty_resource_*_secure got &$smarty passed errornously as 3rd

parameter and not as 2nd. this is fixed.
This commit is contained in:
messju
2004-02-24 00:10:55 +00:00
parent 8485763d2e
commit 2c2c8b12b9
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@@ -1,3 +1,4 @@
- fix parameters passed to resource's secure()-function (messju)
- fix handling of integer values like width and delay im - fix handling of integer values like width and delay im
smarty_function_popup() (messju) smarty_function_popup() (messju)

View File

@@ -48,7 +48,7 @@ function smarty_core_is_secure($params, &$smarty)
// resource is not on local file system // resource is not on local file system
$_smarty_secure = call_user_func_array( $_smarty_secure = call_user_func_array(
$smarty->_plugins['resource'][$params['resource_type']][0][2], $smarty->_plugins['resource'][$params['resource_type']][0][2],
array($params['resource_name'], &$_smarty_secure, &$smarty)); array($params['resource_name'], &$smarty));
} }
return $_smarty_secure; return $_smarty_secure;