diff options
Diffstat (limited to 'lib/smarty3/sysplugins/smarty_internal_method_loadfilter.php')
-rw-r--r-- | lib/smarty3/sysplugins/smarty_internal_method_loadfilter.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/smarty3/sysplugins/smarty_internal_method_loadfilter.php b/lib/smarty3/sysplugins/smarty_internal_method_loadfilter.php index 4fdbdac..66d80d4 100644 --- a/lib/smarty3/sysplugins/smarty_internal_method_loadfilter.php +++ b/lib/smarty3/sysplugins/smarty_internal_method_loadfilter.php @@ -33,15 +33,15 @@ class Smarty_Internal_Method_LoadFilter * @link http://www.smarty.net/docs/en/api.load.filter.tpl * * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj - * @param string $type filter type - * @param string $name filter name + * @param string $type filter type + * @param string $name filter name * * @return bool * @throws SmartyException if filter could not be loaded */ public function loadFilter(Smarty_Internal_TemplateBase $obj, $type, $name) { - $smarty = isset($obj->smarty) ? $obj->smarty : $obj; + $smarty = $obj->_getSmartyObj(); $this->_checkFilterType($type); $_plugin = "smarty_{$type}filter_{$name}"; $_filter_name = $_plugin; @@ -58,7 +58,7 @@ class Smarty_Internal_Method_LoadFilter return true; } } - throw new SmartyException("{$type}filter \"{$name}\" not found or callable"); + throw new SmartyException("{$type}filter '{$name}' not found or callable"); } /** @@ -71,7 +71,7 @@ class Smarty_Internal_Method_LoadFilter public function _checkFilterType($type) { if (!isset($this->filterTypes[ $type ])) { - throw new SmartyException("Illegal filter type \"{$type}\""); + throw new SmartyException("Illegal filter type '{$type}'"); } } -}
\ No newline at end of file +} |