MDL-40524: mod_wiki: Display comments in order

This commit is contained in:
Matt Debus
2013-07-16 11:25:41 +08:00
committed by Damyon Wiese
parent edb2b3c8a0
commit b66e88a4d1
+1 -1
View File
@@ -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');
}
/**