mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 09:05:58 +00: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
|
||||
if($this->Limit > 0){
|
||||
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"){
|
||||
$this->natksort($allTags);
|
||||
|
Loading…
x
Reference in New Issue
Block a user