Removed save_session() - no longer necessary

This commit is contained in:
moodler
2003-02-27 02:49:18 +00:00
parent 7a361c8b55
commit 3e7542449b
7 changed files with 0 additions and 12 deletions
-1
View File
@@ -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);
-1
View File
@@ -20,7 +20,6 @@
}
unset($SESSION->fromdiscussion);
save_session("SESSION");
add_to_log($course->id, "forum", "view forums", "index.php?id=$course->id");
-4
View File
@@ -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");
}
}
-1
View File
@@ -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)");
-1
View File
@@ -20,7 +20,6 @@
}
unset($SESSION->fromdiscussion);
save_session("SESSION");
add_to_log($course->id, "forum", "view subscribers", "subscribers.php?id=$forum->id", "");
-1
View File
@@ -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");
-3
View File
@@ -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");