Removed save_session() - no longer necessary
This commit is contained in:
@@ -33,7 +33,6 @@
|
||||
add_to_log($course->id, "forum", "view discussion", "discuss.php?".$_SERVER["QUERY_STRING"], "$discussion->id");
|
||||
|
||||
unset($SESSION->fromdiscussion);
|
||||
save_session("SESSION");
|
||||
|
||||
forum_set_display_mode($mode);
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
}
|
||||
|
||||
unset($SESSION->fromdiscussion);
|
||||
save_session("SESSION");
|
||||
|
||||
add_to_log($course->id, "forum", "view forums", "index.php?id=$course->id");
|
||||
|
||||
|
||||
@@ -1078,7 +1078,6 @@ function forum_set_return() {
|
||||
// If the referer is NOT a login screen then save it.
|
||||
if (! strncasecmp("$CFG->wwwroot/login", $referer, 300)) {
|
||||
$SESSION->fromdiscussion = $_SERVER["HTTP_REFERER"];
|
||||
save_session("SESSION");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1090,7 +1089,6 @@ function forum_go_back_to($default) {
|
||||
if (!empty($SESSION->fromdiscussion)) {
|
||||
$returnto = $SESSION->fromdiscussion;
|
||||
unset($SESSION->fromdiscussion);
|
||||
save_session("SESSION");
|
||||
return $returnto;
|
||||
} else {
|
||||
return $default;
|
||||
@@ -1660,10 +1658,8 @@ function forum_set_display_mode($mode=0) {
|
||||
|
||||
if ($mode) {
|
||||
$USER->mode = $mode;
|
||||
save_session("USER");
|
||||
} else if (empty($USER->mode)) {
|
||||
$USER->mode = $FORUM_DEFAULT_DISPLAY_MODE;
|
||||
save_session("USER");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -74,7 +74,6 @@
|
||||
if (isset($forum)) { // User is starting a new discussion in a forum
|
||||
|
||||
$SESSION->fromurl = $_SERVER["HTTP_REFERER"];
|
||||
save_session("SESSION");
|
||||
|
||||
if (! $forum = get_record("forum", "id", $forum)) {
|
||||
error("The forum number was incorrect ($forum)");
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
}
|
||||
|
||||
unset($SESSION->fromdiscussion);
|
||||
save_session("SESSION");
|
||||
|
||||
add_to_log($course->id, "forum", "view subscribers", "subscribers.php?id=$forum->id", "");
|
||||
|
||||
|
||||
@@ -66,7 +66,6 @@
|
||||
|
||||
if ($USER) {
|
||||
$SESSION->fromdiscussion = "$FULLME";
|
||||
save_session("SESSION");
|
||||
if (forum_is_forcesubscribed($forum->id)) {
|
||||
$streveryoneissubscribed = get_string("everyoneissubscribed", "forum");
|
||||
$strallowchoice = get_string("allowchoice", "forum");
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
}
|
||||
|
||||
$SESSION->modform = $modform; // Save the form in the current session
|
||||
save_session("SESSION");
|
||||
|
||||
} else {
|
||||
if (!isset($SESSION->modform)) {
|
||||
@@ -140,8 +139,6 @@
|
||||
}
|
||||
|
||||
$SESSION->modform = $modform;
|
||||
save_session("SESSION");
|
||||
|
||||
|
||||
$strediting = get_string("editingquiz", "quiz");
|
||||
$strname = get_string("name");
|
||||
|
||||
Reference in New Issue
Block a user