mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-05 12:14:12 +02:00
- improvement move often used code snippets into methods
This commit is contained in:
@@ -31,7 +31,7 @@ class Smarty_Internal_Method_SetDefaultModifiers
|
||||
*/
|
||||
public function setDefaultModifiers(Smarty_Internal_TemplateBase $obj, $modifiers)
|
||||
{
|
||||
$smarty = isset($obj->smarty) ? $obj->smarty : $obj;
|
||||
$smarty = $obj->_getSmartyObj();
|
||||
$smarty->default_modifiers = (array) $modifiers;
|
||||
return $obj;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user