diff --git a/lib/weblib.php b/lib/weblib.php index aa332914c92..44196c27112 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -667,9 +667,15 @@ function popup_form($common, $options, $formname, $selected='', $nothing='choose $output .= " \n"; } + $inoptgroup = false; foreach ($options as $value => $label) { if (substr($label,0,2) == '--') { - $output .= ' '; // Plain labels + if ($inoptgroup) { + $output .= ' '; + } else { + $inoptgroup = true; + } + $output .= ' '; // Plain labels continue; } else { $output .= ' ' . "\n"; } } + if ($inoptgroup) { + $output .= ' '; + } $output .= ''; $output .= '' . "\n"; @@ -3390,4 +3399,4 @@ function print_speller_button () { echo ''."\n"; } // vim:autoindent:expandtab:shiftwidth=4:tabstop=4:tw=140: -?> \ No newline at end of file +?> diff --git a/mod/forum/discuss.php b/mod/forum/discuss.php index b4c6613766f..f2ca6b69ea5 100644 --- a/mod/forum/discuss.php +++ b/mod/forum/discuss.php @@ -103,7 +103,7 @@ if ($course->category) { print_header("$course->shortname: $discussion->name", "$course->fullname", - "id>$course->shortname -> + "id\">$course->shortname -> $navmiddle -> $navtail", "", "", true, $searchform, navmenu($course, $cm)); } else { print_header("$course->shortname: $discussion->name", "$course->fullname", diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 0b7a8cab86c..17f304d3a12 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -1816,7 +1816,7 @@ function forum_print_search_form($course, $search="", $return=false, $type="") { $output = "
"; $output .= "
wwwroot/mod/forum/search.php\">"; $output .= ""; - $output .= ""; + $output .= ""; $output .= ""; $output .= ""; $output .= "id\" />"; @@ -1826,7 +1826,7 @@ function forum_print_search_form($course, $search="", $return=false, $type="") { $output = "
"; $output .= "wwwroot/mod/forum/search.php\">"; $output .= ""; - $output .= "
"; + $output .= "
"; $output .= ""; $output .= "
"; $output .= "id\" />";