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:
commit
bcbb40e08d
@ -84,7 +84,7 @@ class BlogFeaturedPostsWidget extends Widget
|
||||
return $blog->getBlogPosts()
|
||||
->filter('ID:not', Director::get_current_page()->ID)
|
||||
->filter('FeaturedInWidget', true)
|
||||
->sort('RAND()')
|
||||
->shuffle()
|
||||
->limit($this->NumberOfPosts);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user