summaryrefslogtreecommitdiff
path: root/lib/smarty3/sysplugins/smarty_internal_runtime_filterhandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/smarty3/sysplugins/smarty_internal_runtime_filterhandler.php')
-rw-r--r--lib/smarty3/sysplugins/smarty_internal_runtime_filterhandler.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/smarty3/sysplugins/smarty_internal_runtime_filterhandler.php b/lib/smarty3/sysplugins/smarty_internal_runtime_filterhandler.php
index f6cfa7c..9f868e1 100644
--- a/lib/smarty3/sysplugins/smarty_internal_runtime_filterhandler.php
+++ b/lib/smarty3/sysplugins/smarty_internal_runtime_filterhandler.php
@@ -23,9 +23,9 @@ class Smarty_Internal_Runtime_FilterHandler
* plugin filename format: filtertype.filtername.php
* Smarty2 filter plugins could be used
*
- * @param string $type the type of filter ('pre','post','output') which shall run
- * @param string $content the content which shall be processed by the filters
- * @param Smarty_Internal_Template $template template object
+ * @param string $type the type of filter ('pre','post','output') which shall run
+ * @param string $content the content which shall be processed by the filters
+ * @param Smarty_Internal_Template $template template object
*
* @throws SmartyException
* @return string the filtered content
@@ -34,7 +34,7 @@ class Smarty_Internal_Runtime_FilterHandler
{
// loop over autoload filters of specified type
if (!empty($template->smarty->autoload_filters[ $type ])) {
- foreach ((array) $template->smarty->autoload_filters[ $type ] as $name) {
+ foreach ((array)$template->smarty->autoload_filters[ $type ] as $name) {
$plugin_name = "Smarty_{$type}filter_{$name}";
if (function_exists($plugin_name)) {
$callback = $plugin_name;
@@ -48,11 +48,11 @@ class Smarty_Internal_Runtime_FilterHandler
// loaded class of filter plugin
$callback = array($plugin_name, 'execute');
} else {
- throw new SmartyException("Auto load {$type}-filter plugin method \"{$plugin_name}::execute\" not callable");
+ throw new SmartyException("Auto load {$type}-filter plugin method '{$plugin_name}::execute' not callable");
}
} else {
// nothing found, throw exception
- throw new SmartyException("Unable to auto load {$type}-filter plugin \"{$plugin_name}\"");
+ throw new SmartyException("Unable to auto load {$type}-filter plugin '{$plugin_name}'");
}
$content = call_user_func($callback, $content, $template);
}