mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Added true in array_slice to fix problem displaying tags
This commit is contained in:
parent
c37785c07b
commit
53bd0feb59
@ -62,7 +62,7 @@ class TagCloudWidget extends Widget {
|
|||||||
//TODO: move some or all of the sorts to the database for more efficiency
|
//TODO: move some or all of the sorts to the database for more efficiency
|
||||||
if($this->Limit > 0){
|
if($this->Limit > 0){
|
||||||
uasort($allTags, array($this, "column_sort_by_popularity")); //sort by popularity
|
uasort($allTags, array($this, "column_sort_by_popularity")); //sort by popularity
|
||||||
$allTags = array_slice($allTags, 0, $this->Limit);
|
$allTags = array_slice($allTags, 0, $this->Limit,true);
|
||||||
}
|
}
|
||||||
if($this->Sortby == "alphabet"){
|
if($this->Sortby == "alphabet"){
|
||||||
$this->natksort($allTags);
|
$this->natksort($allTags);
|
||||||
|
Loading…
Reference in New Issue
Block a user