Replace Smarty:: with symfony/polyfill-mbstring

This commit is contained in:
Simon Wisselink
2022-12-01 21:56:12 +01:00
parent 9a0d46f1bc
commit d0319bdc87
37 changed files with 79 additions and 902 deletions

View File

@@ -21,9 +21,5 @@
*/
function smarty_modifiercompiler_lower($params)
{
if (\Smarty\Smarty::$_MBSTRING) {
return 'mb_strtolower(' . $params[ 0 ] . ', \'' . addslashes(\Smarty\Smarty::$_CHARSET) . '\')';
}
// no MBString fallback
return 'strtolower(' . $params[ 0 ] . ')';
return 'mb_strtolower(' . $params[ 0 ] . ', \'' . addslashes(\Smarty\Smarty::$_CHARSET) . '\')';
}