summaryrefslogtreecommitdiff
path: root/lib/smarty3/sysplugins/smarty_internal_method_getautoloadfilters.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/smarty3/sysplugins/smarty_internal_method_getautoloadfilters.php')
-rw-r--r--lib/smarty3/sysplugins/smarty_internal_method_getautoloadfilters.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/smarty3/sysplugins/smarty_internal_method_getautoloadfilters.php b/lib/smarty3/sysplugins/smarty_internal_method_getautoloadfilters.php
index 87d4604..4145db1 100644
--- a/lib/smarty3/sysplugins/smarty_internal_method_getautoloadfilters.php
+++ b/lib/smarty3/sysplugins/smarty_internal_method_getautoloadfilters.php
@@ -11,27 +11,27 @@
*/
class Smarty_Internal_Method_GetAutoloadFilters extends Smarty_Internal_Method_SetAutoloadFilters
{
-
/**
* Get autoload filters
*
* @api Smarty::getAutoloadFilters()
*
* @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj
- * @param string $type type of filter to get auto loads
+ * @param string $type type of filter to get auto loads
* for. Defaults to all autoload
* filters
*
- * @return array array( 'type1' => array( 'filter1', 'filter2', … ) ) or array( 'filter1', 'filter2', …) if $type
+ * @return array array( 'type1' => array( 'filter1', 'filter2', … ) ) or array( 'filter1', 'filter2', …) if $type
* was specified
+ * @throws \SmartyException
*/
public function getAutoloadFilters(Smarty_Internal_TemplateBase $obj, $type = null)
{
- $smarty = isset($obj->smarty) ? $obj->smarty : $obj;
+ $smarty = $obj->_getSmartyObj();
if ($type !== null) {
$this->_checkFilterType($type);
return isset($smarty->autoload_filters[ $type ]) ? $smarty->autoload_filters[ $type ] : array();
}
return $smarty->autoload_filters;
}
-} \ No newline at end of file
+}