From e2f088e1e80e61a412c1e8d4cdec2bff6e7b0c12 Mon Sep 17 00:00:00 2001 From: phalkunz Date: Thu, 20 Jan 2011 13:38:28 +1300 Subject: [PATCH] MINOR: Blog tag now supports multibyte chars in the front-end. Thanks to hex0id. --- code/widgets/TagCloudWidget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/widgets/TagCloudWidget.php b/code/widgets/TagCloudWidget.php index 960c007..ed1bbe0 100644 --- a/code/widgets/TagCloudWidget.php +++ b/code/widgets/TagCloudWidget.php @@ -57,7 +57,7 @@ class TagCloudWidget extends Widget { if($entries) { foreach($entries as $entry) { - $theseTags = split(" *, *", strtolower(trim($entry->Tags))); + $theseTags = split(" *, *", mb_strtolower(trim($entry->Tags))); foreach($theseTags as $tag) { if($tag != "") { $allTags[$tag] = isset($allTags[$tag]) ? $allTags[$tag] + 1 : 1; //getting the count into key => value map