diff options
Diffstat (limited to 'vendor/smarty/smarty/libs/plugins/shared.mb_unicode.php')
-rw-r--r-- | vendor/smarty/smarty/libs/plugins/shared.mb_unicode.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/vendor/smarty/smarty/libs/plugins/shared.mb_unicode.php b/vendor/smarty/smarty/libs/plugins/shared.mb_unicode.php index 7450148a4..7d1206506 100644 --- a/vendor/smarty/smarty/libs/plugins/shared.mb_unicode.php +++ b/vendor/smarty/smarty/libs/plugins/shared.mb_unicode.php @@ -5,7 +5,6 @@ * @package Smarty * @subpackage PluginsShared */ - /** * convert characters to their decimal unicode equivalents * @@ -24,7 +23,6 @@ function smarty_mb_to_unicode($string, $encoding = null) } else { $expanded = mb_convert_encoding($string, 'UTF-32BE'); } - return unpack('N*', $expanded); } @@ -45,10 +43,9 @@ function smarty_mb_from_unicode($unicode, $encoding = null) if (!$encoding) { $encoding = mb_internal_encoding(); } - foreach ((array) $unicode as $utf32be) { + foreach ((array)$unicode as $utf32be) { $character = pack('N*', $utf32be); $t .= mb_convert_encoding($character, $encoding, 'UTF-32BE'); } - return $t; } |