Skip to content
Extraits de code Groupes Projets
Valider 2133f06d rédigé par piwikjapan's avatar piwikjapan
Parcourir les fichiers

Merge pull request #2 from piwikjapan/bugfix

Bugfix
parents 82df9cbf f4e59666
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -44,7 +44,11 @@ class Keyword extends Base ...@@ -44,7 +44,11 @@ class Keyword extends Base
$information = $this->getReferrerInformationFromRequest($request); $information = $this->getReferrerInformationFromRequest($request);
if (!empty($information['referer_keyword'])) { if (!empty($information['referer_keyword'])) {
return substr($information['referer_keyword'], 0, 255); if (function_exists('mb_substr')) {
return mb_substr($information['referer_keyword'], 0, 255, 'UTF-8');
} else {
return substr($information['referer_keyword'], 0, 255);
}
} }
return $information['referer_keyword']; return $information['referer_keyword'];
......
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