Index: temp_moodle_dev/moodle/mod/forum/post.php
===================================================================
RCS file: /usr/local/cvsroot/temp_moodle_dev/moodle/mod/forum/post.php,v
diff -u -r1.1 -r1.2
--- temp_moodle_dev/moodle/mod/forum/post.php 14 Nov 2008 06:30:16 -0000 1.1
+++ temp_moodle_dev/moodle/mod/forum/post.php 10 Dec 2008 23:42:38 -0000 1.2
@@ -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 '