From ab5d8d4e07bb3c8230d0285ef8902ef1979fce51 Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 18 Oct 2018 02:39:34 +0200 Subject: Updating Smarty --- lib/smarty/plugins/modifiercompiler.lower.php | 60 +++++++++++++-------------- 1 file changed, 29 insertions(+), 31 deletions(-) (limited to 'lib/smarty/plugins/modifiercompiler.lower.php') diff --git a/lib/smarty/plugins/modifiercompiler.lower.php b/lib/smarty/plugins/modifiercompiler.lower.php index 1845cc1..0d899a0 100644 --- a/lib/smarty/plugins/modifiercompiler.lower.php +++ b/lib/smarty/plugins/modifiercompiler.lower.php @@ -1,31 +1,29 @@ - - * Name: lower
- * Purpose: convert string to lowercase - * - * @link http://www.smarty.net/manual/en/language.modifier.lower.php lower (Smarty online manual) - * @author Monte Ohrt - * @author Uwe Tews - * @param array $params parameters - * @return string with compiled code - */ - -function smarty_modifiercompiler_lower($params, $compiler) -{ - if (Smarty::$_MBSTRING) { - return 'mb_strtolower(' . $params[0] . ', \'' . addslashes(Smarty::$_CHARSET) . '\')' ; - } - // no MBString fallback - return 'strtolower(' . $params[0] . ')'; -} - -?> \ No newline at end of file + + * @author Uwe Tews + * + * @param array $params parameters + * + * @return string with compiled code + */ +function smarty_modifiercompiler_lower($params) +{ + if (Smarty::$_MBSTRING) { + return 'mb_strtolower(' . $params[ 0 ] . ', \'' . addslashes(Smarty::$_CHARSET) . '\')'; + } + // no MBString fallback + return 'strtolower(' . $params[ 0 ] . ')'; +} -- cgit v1.2.3