Index: temp_moodle_dev/moodle/mod/wiki/admin.php =================================================================== diff -u -r5251d2a62e0e78377219456d6bba613eb2d1fd26 -r505b6bba0c99f46d4ca7df4a8f4a9c8c7b9090f8 --- temp_moodle_dev/moodle/mod/wiki/admin.php (.../admin.php) (revision 5251d2a62e0e78377219456d6bba613eb2d1fd26) +++ temp_moodle_dev/moodle/mod/wiki/admin.php (.../admin.php) (revision 505b6bba0c99f46d4ca7df4a8f4a9c8c7b9090f8) @@ -116,11 +116,13 @@ } $navigation = build_navigation(get_string("administration","wiki"), $cm); + + //we pass a new parameter to the function so it won't we printed if is_lams=1 print_header_simple("$wiki_entry->pagename", "", $navigation, $focus, "", true, update_module_button($cm->id, $course->id, $strwiki), - navmenu($course, $cm)); + navmenu($course, $cm),false,'',false,$cm->is_lams); + - //////////////////////////////////////////////////////////// /// Check if the Form has been submitted and display confirmation //////////////////////////////////////////////////////////// @@ -153,7 +155,8 @@ if(!$confirm && $form->pagestodelete) { notice_yesno(get_string("removepagecheck", "wiki")."
".join(", ", $form->pagestodelete), $link."&confirm=".urlencode(join(" ",$form->pagestodelete)), $link); - print_footer($course); + //we pass a new parameter to the function so it won't we printed if is_lams=1 + print_footer($course,null, false,$cm->is_lams); exit; } } @@ -174,7 +177,8 @@ } notice_yesno(get_string("strippagecheck", "wiki")."
".join(", ", $pagestostrip), $link.$confirm, $link); - print_footer($course); + //we pass a new parameter to the function so it won't we printed if is_lams=1 + print_footer($course,null, false,$cm->is_lams); exit; } } @@ -186,7 +190,8 @@ $confirm="&confirm=".$form->pagetocheck; notice_yesno(get_string("checklinkscheck", "wiki").$form->pagetocheck, $link.$confirm, $link); - print_footer($course); + //we pass a new parameter to the function so it won't we printed if is_lams=1 + print_footer($course,null, false,$cm->is_lams); exit; } } @@ -206,7 +211,8 @@ if($revertedpages) { notice_yesno(get_string("revertpagescheck", "wiki")."
".$revertedpages, $link.$confirm, $link); - print_footer($course); + //we pass a new parameter to the function so it won't we printed if is_lams=1 + print_footer($course,null, false,$cm->is_lams); exit; } else { $err->remark=get_string("nochangestorevert","wiki"); @@ -341,7 +347,8 @@ print_simple_box_end(); /// Finish the page - print_footer($course); + //we pass a new parameter to the function so it won't we printed if is_lams=1 + print_footer($course,null, false,$cm->is_lams); exit; ?>