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.upper.php | 58 +++++++++++++-------------- 1 file changed, 28 insertions(+), 30 deletions(-) (limited to 'lib/smarty/plugins/modifiercompiler.upper.php') diff --git a/lib/smarty/plugins/modifiercompiler.upper.php b/lib/smarty/plugins/modifiercompiler.upper.php index f368e37..ea4e95b 100644 --- a/lib/smarty/plugins/modifiercompiler.upper.php +++ b/lib/smarty/plugins/modifiercompiler.upper.php @@ -1,30 +1,28 @@ - - * 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 +