Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-26931 Order blog entries by the creation date

  • Loading branch information...
commit f9112bda35d4a583a3e293675189f1a170b3c937 1 parent 408612d
Ankit Agarwal ankitagarwal authored mudrd8mz committed

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  blog/locallib.php
2  blog/locallib.php
@@ -718,7 +718,7 @@ public function get_entries($start=0, $limit=10) {
718 718 global $DB;
719 719
720 720 if (empty($this->entries)) {
721   - if ($sqlarray = $this->get_entry_fetch_sql()) {
  721 + if ($sqlarray = $this->get_entry_fetch_sql(false, 'created DESC')) {
722 722 $this->entries = $DB->get_records_sql($sqlarray['sql'], $sqlarray['params'], $start, $limit);
723 723 } else {
724 724 return false;

0 comments on commit f9112bd

Please sign in to comment.
Something went wrong with that request. Please try again.