Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'MDL-54036_master' of https://github.com/liorgil/moodle
[moodle.git]
/
mod
/
forum
/
lib.php
diff --git
a/mod/forum/lib.php
b/mod/forum/lib.php
index
4816808
..
8ab2749
100644
(file)
--- a/
mod/forum/lib.php
+++ b/
mod/forum/lib.php
@@
-5686,12
+5686,6
@@
function forum_print_posts_flat($course, &$cm, $forum, $discussion, $post, $mode
$link = false;
- if ($mode == FORUM_MODE_FLATNEWEST) {
- $sort = "ORDER BY created DESC";
- } else {
- $sort = "ORDER BY created ASC";
- }
-
foreach ($posts as $post) {
if (!$post->parent) {
continue;