summaryrefslogtreecommitdiff
path: root/lib/smarty3/sysplugins/smarty_internal_method_setdefaultmodifiers.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/smarty3/sysplugins/smarty_internal_method_setdefaultmodifiers.php')
-rw-r--r--lib/smarty3/sysplugins/smarty_internal_method_setdefaultmodifiers.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/smarty3/sysplugins/smarty_internal_method_setdefaultmodifiers.php b/lib/smarty3/sysplugins/smarty_internal_method_setdefaultmodifiers.php
index 5a70728..eadc2de 100644
--- a/lib/smarty3/sysplugins/smarty_internal_method_setdefaultmodifiers.php
+++ b/lib/smarty3/sysplugins/smarty_internal_method_setdefaultmodifiers.php
@@ -24,15 +24,15 @@ class Smarty_Internal_Method_SetDefaultModifiers
* @api Smarty::setDefaultModifiers()
*
* @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj
- * @param array|string $modifiers modifier or list of modifiers
+ * @param array|string $modifiers modifier or list of modifiers
* to set
*
* @return \Smarty|\Smarty_Internal_Template
*/
public function setDefaultModifiers(Smarty_Internal_TemplateBase $obj, $modifiers)
{
- $smarty = isset($obj->smarty) ? $obj->smarty : $obj;
- $smarty->default_modifiers = (array) $modifiers;
+ $smarty = $obj->_getSmartyObj();
+ $smarty->default_modifiers = (array)$modifiers;
return $obj;
}
-} \ No newline at end of file
+}