]> git.mjollnir.org Git - moodle.git/commitdiff
Whoops ... little bug that stopped loginas from working ... need to
authormartin <martin>
Thu, 5 Sep 2002 11:28:06 +0000 (11:28 +0000)
committermartin <martin>
Thu, 5 Sep 2002 11:28:06 +0000 (11:28 +0000)
create $USER->site ...

course/loginas.php

index 98baf4fe78bb3f72dd8a2d20180c215013db234c..8dff3b70d56ea3060cc8d1e28844ea1fb180e0b3 100644 (file)
@@ -28,6 +28,7 @@
 
     $USER = get_user_info_from_db("id", $user);
     $USER->loggedin = true;
+    $USER->site = $CFG->wwwroot;
     $USER->realuser = $teacher_id;
     save_session("USER");