diff options
author | Stefan Giehl <stefan@piwik.org> | 2017-09-26 01:28:40 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2017-09-26 01:28:40 +0300 |
commit | 9c8980844fbdd101975915597b72765e0ef2c7a2 (patch) | |
tree | de0968973e178de75835cb540444ece81392e0ce /plugins/Intl/Commands | |
parent | da6e68b04ff532d125e2c1e38be23814c5b8ecd9 (diff) |
Use mbstring proxy methods (#12104)
* Use mbstring proxy methods
* Avoid using strtolower/strtoupper if mbstring is not available to prevent possible unicode problems
Diffstat (limited to 'plugins/Intl/Commands')
-rw-r--r-- | plugins/Intl/Commands/GenerateIntl.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Intl/Commands/GenerateIntl.php b/plugins/Intl/Commands/GenerateIntl.php index 59b79ae30e..b525dda770 100644 --- a/plugins/Intl/Commands/GenerateIntl.php +++ b/plugins/Intl/Commands/GenerateIntl.php @@ -9,6 +9,7 @@ namespace Piwik\Plugins\Intl\Commands; +use Piwik\Common; use Piwik\Container\StaticContainer; use Piwik\Development; use Piwik\Filesystem; @@ -51,7 +52,7 @@ class GenerateIntl extends ConsoleCommand } preg_match_all("~^(.)(.*)$~u", $str, $arr); - return mb_strtoupper($arr[1][0], 'UTF-8').$arr[2][0]; + return Common::mb_strtoupper($arr[1][0]).$arr[2][0]; } protected function execute(InputInterface $input, OutputInterface $output) |