Index: temp_moodle_dev/moodle/mod/forum/post.php
===================================================================
diff -u -r5251d2a62e0e78377219456d6bba613eb2d1fd26 -red077ddbb92e2cc271e89b8a83962c7e8ac018d3
--- temp_moodle_dev/moodle/mod/forum/post.php (.../post.php) (revision 5251d2a62e0e78377219456d6bba613eb2d1fd26)
+++ temp_moodle_dev/moodle/mod/forum/post.php (.../post.php) (revision ed077ddbb92e2cc271e89b8a83962c7e8ac018d3)
@@ -14,6 +14,7 @@
$name = optional_param('name', '', PARAM_CLEAN);
$confirm = optional_param('confirm', 0, PARAM_INT);
$groupid = optional_param('groupid', null, PARAM_INT);
+ $editing = optional_param('editing', 0, PARAM_INT); // 1 if editing in Lams
//these page_params will be passed as hidden variables later in the form.
@@ -58,14 +59,19 @@
}
$navigation = build_navigation('', $cm);
- print_header($course->shortname, $course->fullname, $navigation, '' , '', true, "", navmenu($course, $cm));
-
+ //if in Lams sequence don't display Moodle's navigation header
+ if($cm->is_lams==1){
+ print_header();
+ }else{
+ print_header($course->shortname, $course->fullname, $navigation, '' , '', true, "", navmenu($course, $cm));
+ }
+
notice_yesno(get_string('noguestpost', 'forum').'
'.get_string('liketologin'),
$wwwroot, get_referer(false));
- 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;
}
-
require_login(0, false); // Script is useless unless they're logged in
if (!empty($forum)) { // User is starting a new discussion in a forum
@@ -184,6 +190,8 @@
if (!(substr($post->subject, 0, strlen($strre)) == $strre)) {
$post->subject = $strre.' '.$post->subject;
}
+
+
unset($SESSION->fromdiscussion);
@@ -337,7 +345,8 @@
}
}
- 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);
die;
@@ -413,8 +422,13 @@
$navlinks[] = array('name' => format_string($post->subject, true), 'link' => "discuss.php?d=$discussion->id", 'type' => 'title');
$navlinks[] = array('name' => get_string("prune", "forum"), 'link' => '', 'type' => 'title');
$navigation = build_navigation($navlinks, $cm);
- print_header_simple(format_string($discussion->name).": ".format_string($post->subject), "", $navigation, '', "", true, "", navmenu($course, $cm));
-
+
+ //we pass a new parameter to the function so it won't we printed if is_lams=1
+ print_header_simple(format_string($discussion->name).": ".format_string($post->subject), "", $navigation, '', "", true, "", navmenu($course, $cm),false,'',false,$cm->is_lams);
+
+
+
+
print_heading(get_string('pruneheading', 'forum'));
echo '