Merge branch 'MDL-26931-blog-post-order_master' of git://github.com/mudrd8mz/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2011-04-04 11:56:44 +02:00
commit a70ba1b069

View File

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