Skip to content

Commit

Permalink
Set fromdiscussion here just in case it's not set elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
martin committed Sep 25, 2002
1 parent 38ff0e9 commit 4c701e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions course/social.php
Expand Up @@ -68,8 +68,6 @@
echo "<IMG ALT=\"\" HEIGHT=7 SRC=\"../pix/spacer.gif\"><BR>";

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");
Expand Down
4 changes: 3 additions & 1 deletion course/view.php
Expand Up @@ -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,
Expand Down

0 comments on commit 4c701e6

Please sign in to comment.