]> git.mjollnir.org Git - moodle.git/commitdiff
Avoid some probles when returning to the original user after using the loginas feature.
authorstronk7 <stronk7>
Mon, 31 Jan 2005 18:10:50 +0000 (18:10 +0000)
committerstronk7 <stronk7>
Mon, 31 Jan 2005 18:10:50 +0000 (18:10 +0000)
(sesskey not set)

lib/weblib.php

index dddc142a88f0f68f0dc2013379664a66fe6e7635..7f9578ff6b4ffe7f5e6861a3fd8c192b885fe580 100644 (file)
@@ -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 '';