Permalink
Browse files

MDL-40524: mod_wiki: Display comments in order

  • Loading branch information...
1 parent a7228f5 commit bc583cacfda3c74034eb2122b15b0ee091134669 @mdebus4 mdebus4 committed with damyon Jul 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/wiki/locallib.php
View
@@ -1165,7 +1165,7 @@ function wiki_get_comment($commentid){
function wiki_get_comments($contextid, $pageid) {
global $DB;
- return $DB->get_records('comments', array('contextid' => $contextid, 'itemid' => $pageid, 'commentarea' => 'wiki_page'));
+ return $DB->get_records('comments', array('contextid' => $contextid, 'itemid' => $pageid, 'commentarea' => 'wiki_page'), 'timecreated ASC');
}
/**

0 comments on commit bc583ca

Please sign in to comment.