Index: temp_moodle_dev/moodle/mod/wiki/admin.php
===================================================================
RCS file: /usr/local/cvsroot/temp_moodle_dev/moodle/mod/wiki/admin.php,v
diff -u -r1.1 -r1.2
--- temp_moodle_dev/moodle/mod/wiki/admin.php 14 Nov 2008 06:29:58 -0000 1.1
+++ temp_moodle_dev/moodle/mod/wiki/admin.php 17 Dec 2008 23:47:58 -0000 1.2
@@ -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;
?>