From eab8a101e7a3fcbb41e01a574985e06c5a3775de Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 18 Oct 2018 02:40:38 +0200 Subject: Updating Smarty --- .../sysplugins/smarty_internal_undefined.php | 40 ++++++++++++++++------ 1 file changed, 29 insertions(+), 11 deletions(-) (limited to 'lib/smarty3/sysplugins/smarty_internal_undefined.php') diff --git a/lib/smarty3/sysplugins/smarty_internal_undefined.php b/lib/smarty3/sysplugins/smarty_internal_undefined.php index 23563e0..7df0acc 100644 --- a/lib/smarty3/sysplugins/smarty_internal_undefined.php +++ b/lib/smarty3/sysplugins/smarty_internal_undefined.php @@ -1,9 +1,9 @@ class = $class; + } + + /** + * Wrapper for obsolete class Smarty_Internal_Runtime_ValidateCompiled + * + * @param \Smarty_Internal_Template $tpl + * @param array $properties special template properties + * @param bool $cache flag if called from cache file * - * @return bool flag if compiled or cache file is valid + * @return bool false */ public function decodeProperties(Smarty_Internal_Template $tpl, $properties, $cache = false) { @@ -44,6 +58,10 @@ class Smarty_Internal_Undefined */ public function __call($name, $args) { - throw new SmartyException(get_class($args[ 0 ]) . "->{$name}() undefined method"); + if (isset($this->class)) { + throw new SmartyException("undefined extension class '{$this->class}'"); + } else { + throw new SmartyException(get_class($args[ 0 ]) . "->{$name}() undefined method"); + } } -} \ No newline at end of file +} -- cgit v1.2.3