MINOR: Added sorting argument to callback function

This commit is contained in:
Saophalkun Ponlu 2009-07-20 04:02:12 +00:00
parent a91d0eeb68
commit 6d0f161cf4
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}