Skip to content
Extraits de code Groupes Projets
Valider 030922c1 rédigé par Thomas Steur's avatar Thomas Steur
Parcourir les fichiers

fix #4410 The string to escape is not a valid UTF-8 string (#10050)

parent 7119a07d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
namespace Piwik\Plugins\SegmentEditor; namespace Piwik\Plugins\SegmentEditor;
use Exception; use Exception;
use Piwik\Common;
use Piwik\Config; use Piwik\Config;
use Piwik\Db; use Piwik\Db;
use Piwik\Piwik; use Piwik\Piwik;
...@@ -111,7 +112,7 @@ class SegmentFormatter ...@@ -111,7 +112,7 @@ class SegmentFormatter
$translation = Piwik::translate($this->matchesMetric[$operator]); $translation = Piwik::translate($this->matchesMetric[$operator]);
} }
return strtolower($translation); return Common::mb_strtolower($translation);
} }
private function getFormattedValue($operand) private function getFormattedValue($operand)
......
...@@ -53,7 +53,7 @@ class SegmentSelectorControl extends UIControl ...@@ -53,7 +53,7 @@ class SegmentSelectorControl extends UIControl
&& ($segment['type'] == 'metric' && $segment['segment'] != 'visitIp') && ($segment['type'] == 'metric' && $segment['segment'] != 'visitIp')
) { ) {
$metricsLabel = Piwik::translate('General_Metrics'); $metricsLabel = Piwik::translate('General_Metrics');
$metricsLabel[0] = strtolower($metricsLabel[0]); $metricsLabel[0] = Common::mb_strtolower($metricsLabel[0]);
$segment['category'] .= ' (' . $metricsLabel . ')'; $segment['category'] .= ' (' . $metricsLabel . ')';
} }
$segmentsByCategory[$segment['category']][] = $segment; $segmentsByCategory[$segment['category']][] = $segment;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter