diff options
Diffstat (limited to 'Widgets/smarty/libs/plugins/modifiercompiler.count_characters.php')
-rw-r--r-- | Widgets/smarty/libs/plugins/modifiercompiler.count_characters.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Widgets/smarty/libs/plugins/modifiercompiler.count_characters.php b/Widgets/smarty/libs/plugins/modifiercompiler.count_characters.php index f8463d80..0f269c9f 100644 --- a/Widgets/smarty/libs/plugins/modifiercompiler.count_characters.php +++ b/Widgets/smarty/libs/plugins/modifiercompiler.count_characters.php @@ -2,24 +2,23 @@ /** * Smarty plugin * - * @package Smarty + * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty count_characters modifier plugin + * * Type: modifier<br> * Name: count_characteres<br> * Purpose: count the number of characters in a text * - * @link http://www.smarty.net/manual/en/language.modifier.count.characters.php count_characters (Smarty online manual) + * @link http://www.smarty.net/manual/en/language.modifier.count.characters.php count_characters (Smarty online manual) * @author Uwe Tews - * * @param array $params parameters - * * @return string with compiled code */ -function smarty_modifiercompiler_count_characters($params) +function smarty_modifiercompiler_count_characters($params, $compiler) { if (!isset($params[1]) || $params[1] != 'true') { return 'preg_match_all(\'/[^\s]/' . Smarty::$_UTF8_MODIFIER . '\',' . $params[0] . ', $tmp)'; @@ -30,3 +29,5 @@ function smarty_modifiercompiler_count_characters($params) // no MBString fallback return 'strlen(' . $params[0] . ')'; } + +?>
\ No newline at end of file |