mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Replace deprecated sort rand with shuffle
This commit is contained in:
parent
c93566f7a8
commit
7189427bf3
@ -84,7 +84,7 @@ class BlogFeaturedPostsWidget extends Widget
|
|||||||
return $blog->getBlogPosts()
|
return $blog->getBlogPosts()
|
||||||
->filter('ID:not', Director::get_current_page()->ID)
|
->filter('ID:not', Director::get_current_page()->ID)
|
||||||
->filter('FeaturedInWidget', true)
|
->filter('FeaturedInWidget', true)
|
||||||
->sort('RAND()')
|
->shuffle()
|
||||||
->limit($this->NumberOfPosts);
|
->limit($this->NumberOfPosts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user