diff --git a/mod/forum/user.php b/mod/forum/user.php index 53f229f8dab..b90821b8394 100644 --- a/mod/forum/user.php +++ b/mod/forum/user.php @@ -61,7 +61,8 @@ $extrasql = 'AND p.parent = 0'; break; } - + + echo '
'; if ($posts = forum_search_posts($searchterms, $course->id, $page*$perpage, $perpage, $totalcount, $groupid, $extrasql)) { print_paging_bar($totalcount, $page, $perpage, @@ -103,6 +104,7 @@ } else { print_heading(get_string('noposts', 'forum')); } + echo '
'; print_footer($course); ?> diff --git a/user/tabs.php b/user/tabs.php index 638d7595d64..32107b19d5b 100644 --- a/user/tabs.php +++ b/user/tabs.php @@ -12,6 +12,7 @@ //if (!empty($USER) and (isteacher($course->id) or (($USER->id == $user->id) and !isguest()))) { // tabs are shown $inactive = NULL; + $activetwo = NULL; $toprow = array(); $toprow[] = new tabobject('profile', $CFG->wwwroot.'/user/view.php?id='.$user->id.'&course='.$course->id, @@ -44,6 +45,7 @@ if (in_array($currenttab, array('posts', 'discussions'))) { $inactive = array('forumposts'); + $activetwo = array('forumposts'); $secondrow = array(); $secondrow[] = new tabobject('posts', $CFG->wwwroot.'/mod/forum/user.php?course='.$course->id. @@ -61,6 +63,7 @@ if (in_array($currenttab, array('outline', 'complete', 'todaylogs', 'alllogs'))) { $inactive = array('reports'); + $activetwo = array('reports'); $secondrow = array(); $secondrow[] = new tabobject('outline', $CFG->wwwroot.'/course/user.php?id='.$course->id. @@ -87,6 +90,6 @@ /// Print out the tabs and continue! - print_tabs($tabs, $currenttab, $inactive); + print_tabs($tabs, $currenttab, $inactive, $activetwo); ?>