mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Removed save_session() - no longer needed.
This commit is contained in:
parent
55271c3047
commit
7a361c8b55
8 changed files with 0 additions and 18 deletions
|
@ -38,12 +38,10 @@
|
|||
}
|
||||
|
||||
$USER->student["$id"] = true;
|
||||
save_session("USER");
|
||||
|
||||
if ($SESSION->wantsurl) {
|
||||
$destination = $SESSION->wantsurl;
|
||||
unset($SESSION->wantsurl);
|
||||
save_session("SESSION");
|
||||
} else {
|
||||
$destination = "$CFG->wwwroot/course/view.php?id=$id";
|
||||
}
|
||||
|
@ -72,12 +70,10 @@
|
|||
}
|
||||
|
||||
$USER->student["$id"] = true;
|
||||
save_session("USER");
|
||||
|
||||
if ($SESSION->wantsurl) {
|
||||
$destination = $SESSION->wantsurl;
|
||||
unset($SESSION->wantsurl);
|
||||
save_session("SESSION");
|
||||
} else {
|
||||
$destination = "$CFG->wwwroot/course/view.php?id=$id";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue