mirror of
https://github.com/moodle/moodle.git
synced 2025-02-01 21:54:04 +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\">".
|
return "<form target=\"$CFG->framename\" method=\"get\" action=\"$CFG->wwwroot/course/mod.php\">".
|
||||||
"<input type=\"hidden\" name=\"update\" value=\"$moduleid\" />".
|
"<input type=\"hidden\" name=\"update\" value=\"$moduleid\" />".
|
||||||
"<input type=\"hidden\" name=\"return\" value=\"true\" />".
|
"<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>";
|
"<input type=\"submit\" value=\"$string\" /></form>";
|
||||||
} else {
|
} else {
|
||||||
return '';
|
return '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user