From 967ab871b836f618107fe144978bd1453c3c6634 Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Thu, 11 Dec 2014 20:15:27 +0000 Subject: Update Smarty --- .../Smarty/libs/plugins/modifiercompiler.upper.php | 59 +++++++++++----------- 1 file changed, 29 insertions(+), 30 deletions(-) (limited to 'library/Smarty/libs/plugins/modifiercompiler.upper.php') diff --git a/library/Smarty/libs/plugins/modifiercompiler.upper.php b/library/Smarty/libs/plugins/modifiercompiler.upper.php index f368e37dc..52ca4e8ff 100644 --- a/library/Smarty/libs/plugins/modifiercompiler.upper.php +++ b/library/Smarty/libs/plugins/modifiercompiler.upper.php @@ -1,30 +1,29 @@ - - * Name: lower
- * Purpose: convert string to uppercase - * - * @link http://smarty.php.net/manual/en/language.modifier.upper.php lower (Smarty online manual) - * @author Uwe Tews - * @param array $params parameters - * @return string with compiled code - */ -function smarty_modifiercompiler_upper($params, $compiler) -{ - if (Smarty::$_MBSTRING) { - return 'mb_strtoupper(' . $params[0] . ', \'' . addslashes(Smarty::$_CHARSET) . '\')' ; - } - // no MBString fallback - return 'strtoupper(' . $params[0] . ')'; -} - -?> \ No newline at end of file + + * Name: lower
+ * Purpose: convert string to uppercase + * + * @link http://smarty.php.net/manual/en/language.modifier.upper.php lower (Smarty online manual) + * @author Uwe Tews + * + * @param array $params parameters + * + * @return string with compiled code + */ +function smarty_modifiercompiler_upper($params) +{ + if (Smarty::$_MBSTRING) { + return 'mb_strtoupper(' . $params[0] . ', \'' . addslashes(Smarty::$_CHARSET) . '\')'; + } + // no MBString fallback + return 'strtoupper(' . $params[0] . ')'; +} -- cgit v1.2.3