MDL-54036 mod_forum: Remove unused variable in forum_print_posts_flat
This commit is contained in:
@@ -5676,12 +5676,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;
|
||||
|
||||
Reference in New Issue
Block a user