MDL-26931 Order blog entries by the creation date
This commit is contained in:
committed by
David Mudrak
parent
dae6b38c51
commit
899d5e2d50
+1
-1
@@ -718,7 +718,7 @@ class blog_listing {
|
||||
global $DB;
|
||||
|
||||
if (empty($this->entries)) {
|
||||
if ($sqlarray = $this->get_entry_fetch_sql()) {
|
||||
if ($sqlarray = $this->get_entry_fetch_sql(false, 'created DESC')) {
|
||||
$this->entries = $DB->get_records_sql($sqlarray['sql'], $sqlarray['params'], $start, $limit);
|
||||
} else {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user