From 4c701e6f5470d628623c9e7b94275d0840643b8c Mon Sep 17 00:00:00 2001 From: martin Date: Wed, 25 Sep 2002 08:17:35 +0000 Subject: [PATCH] Set fromdiscussion here just in case it's not set elsewhere --- course/social.php | 2 -- course/view.php | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) 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, -- 2.39.5