mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #720 from 3Dgoo/4
Replace deprecated sort rand with shuffle
This commit is contained in:
commit
b9c535ac67
@ -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