Skip to content

Commit

Permalink
MDL-40524: mod_wiki: Display comments in order
Browse files Browse the repository at this point in the history
  • Loading branch information
mdebus4 authored and Damyon Wiese committed Jul 16, 2013
1 parent a7228f5 commit bc583ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/wiki/locallib.php
Expand Up @@ -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');
}

/**
Expand Down

0 comments on commit bc583ca

Please sign in to comment.