From: martin Date: Wed, 25 Sep 2002 08:17:35 +0000 (+0000) Subject: Set fromdiscussion here just in case it's not set elsewhere X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4c701e6f5470d628623c9e7b94275d0840643b8c;p=moodle.git Set fromdiscussion here just in case it's not set elsewhere --- diff --git a/course/social.php b/course/social.php index f60fd261ac..f10c22fc36 100644 --- a/course/social.php +++ b/course/social.php @@ -68,8 +68,6 @@ echo "\"\"
"; forum_print_latest_discussions($social->id, 10, "plain", "DESC", false); - $SESSION->fromdiscussion = "$CFG->wwwroot/course/view.php?id=$course->id"; - save_session("SESSION"); } else { notify("Could not find or create a social forum here"); diff --git a/course/view.php b/course/view.php index 7d830cf9a3..aa8d185932 100644 --- a/course/view.php +++ b/course/view.php @@ -42,9 +42,11 @@ } else if ($help == "off") { $USER->help = false; } - save_session("USER"); + $SESSION->fromdiscussion = "$CFG->wwwroot/course/view.php?id=$course->id"; + save_session("SESSION"); + $courseword = get_string("course"); print_header("$courseword: $course->fullname", "$course->fullname", "$course->shortname", "search.search", "", true,