aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_gettags.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_gettags.php')
-rw-r--r--vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_gettags.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_gettags.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_gettags.php
index 5718b69e9..afaa4b913 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_gettags.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_gettags.php
@@ -28,6 +28,7 @@ class Smarty_Internal_Method_GetTags
* @param null|string|Smarty_Internal_Template $template
*
* @return array of tag/attributes
+ * @throws \Exception
* @throws \SmartyException
*/
public function getTags(Smarty_Internal_TemplateBase $obj, $template = null)
@@ -52,11 +53,11 @@ class Smarty_Internal_Method_GetTags
$tpl->_cache[ 'used_tags' ] = array();
$tpl->smarty->merge_compiled_includes = false;
$tpl->smarty->disableSecurity();
- $tpl->caching = false;
+ $tpl->caching = Smarty::CACHING_OFF;
$tpl->loadCompiler();
$tpl->compiler->compileTemplate($tpl);
return $tpl->_cache[ 'used_tags' ];
}
- throw new SmartyException("Missing template specification");
+ throw new SmartyException('Missing template specification');
}
} \ No newline at end of file