Skip to content

Commit

Permalink
Fix the display when USER display mode is flat, and a parent is selec…
Browse files Browse the repository at this point in the history
…ted.

In this case, the display is temporarily changed to nested
  • Loading branch information
martin committed Sep 2, 2002
1 parent 5a83a0a commit e92ea3d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions mod/forum/discuss.php
Expand Up @@ -33,11 +33,13 @@


forum_set_display_mode($mode); forum_set_display_mode($mode);


if (abs($USER->mode) == 1) { // If flat display then display the lot. $displaymode = $USER->mode;
$parent = 0;
}


if (!$parent) { if ($parent) {
if (abs($USER->mode) == 1) { // If flat AND parent, then force nested display this time
$displaymode = 3;
}
} else {
$parent = $discussion->firstpost; $parent = $discussion->firstpost;
$navtail = "$discussion->name"; $navtail = "$discussion->name";
} }
Expand Down Expand Up @@ -67,7 +69,7 @@
"$navmiddle -> $navtail", "", "", true, $updatebutton); "$navmiddle -> $navtail", "", "", true, $updatebutton);
} }


forum_print_discussion($course, $forum, $discussion, $post, $USER->mode); forum_print_discussion($course, $forum, $discussion, $post, $displaymode);


print_footer($course); print_footer($course);


Expand Down

0 comments on commit e92ea3d

Please sign in to comment.