mirror of
https://github.com/moodle/moodle.git
synced 2025-01-21 07:28:31 +01:00
Avoid some probles when returning to the original user after using the loginas feature.
(sesskey not set)
This commit is contained in:
parent
2d81101163
commit
6bdd02e40b
@ -2679,7 +2679,7 @@ function update_module_button($moduleid, $courseid, $string) {
|
||||
return "<form target=\"$CFG->framename\" method=\"get\" action=\"$CFG->wwwroot/course/mod.php\">".
|
||||
"<input type=\"hidden\" name=\"update\" value=\"$moduleid\" />".
|
||||
"<input type=\"hidden\" name=\"return\" value=\"true\" />".
|
||||
"<input type=\"hidden\" name=\"sesskey\" value=\"$USER->sesskey\" />".
|
||||
"<input type=\"hidden\" name=\"sesskey\" value=\"".sesskey()."\" />".
|
||||
"<input type=\"submit\" value=\"$string\" /></form>";
|
||||
} else {
|
||||
return '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user