diff options
author | zotlabs <mike@macgirvin.com> | 2018-10-30 18:11:49 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-10-30 18:11:49 -0700 |
commit | 70c55da1df69d90dcbeb5a78c994b23a8456bfc9 (patch) | |
tree | 86d39069b02ecabe4ed091514e5076a98abda43a /vendor/smarty/smarty/libs/plugins/shared.mb_unicode.php | |
parent | 623aa7ea48149ca7c2bc556931f25befdf49e58a (diff) | |
parent | f9ab7647dd660adb37464614616cb8484c500de4 (diff) | |
download | volse-hubzilla-70c55da1df69d90dcbeb5a78c994b23a8456bfc9.tar.gz volse-hubzilla-70c55da1df69d90dcbeb5a78c994b23a8456bfc9.tar.bz2 volse-hubzilla-70c55da1df69d90dcbeb5a78c994b23a8456bfc9.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into xdev_merge
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; } |