mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
MINOR: Added sorting argument to callback function
This commit is contained in:
parent
a91d0eeb68
commit
6d0f161cf4
@ -203,7 +203,7 @@ class BlogTree extends Page {
|
||||
}
|
||||
|
||||
// By specifying a callback, you can alter the SQL, or sort on something other than date.
|
||||
if ($retrieveCallback) return call_user_func($retrieveCallback, 'BlogEntry', $where, $limit);
|
||||
if ($retrieveCallback) return call_user_func($retrieveCallback, 'BlogEntry', $where, $limit, $order);
|
||||
else return DataObject::get('BlogEntry', $where, $order, '', $limit);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user