Merge branch 'MDL-40524' of git://github.com/aolley/moodle

This commit is contained in:
Damyon Wiese
2013-07-16 11:24:06 +08:00
+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');
}
/**