From: toyomoyo Date: Tue, 17 Oct 2006 04:38:33 +0000 (+0000) Subject: merged fix for MDL-6926 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8e3f0e3d41e9e256944190ab7e563a93634572e1;p=moodle.git merged fix for MDL-6926 --- diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 3f4af44ecf..ce8ee11444 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -2410,7 +2410,10 @@ function forum_print_rating_menu($postid, $userid, $scale) { * @param $forumtype - optional */ function forum_print_mode_form($id, $mode, $forumtype='') { - GLOBAL $FORUM_LAYOUT_MODES; + $FORUM_LAYOUT_MODES = array ( FORUM_MODE_FLATOLDEST => get_string('modeflatoldestfirst', 'forum'), + FORUM_MODE_FLATNEWEST => get_string('modeflatnewestfirst', 'forum'), + FORUM_MODE_THREADED => get_string('modethreaded', 'forum'), + FORUM_MODE_NESTED => get_string('modenested', 'forum') ); echo "
"; if ($forumtype == 'single') {