mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
MINOR: Blog tag now supports multibyte chars in the front-end. Thanks to hex0id.
This commit is contained in:
parent
c3415b6697
commit
e2f088e1e8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user