]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14992 $SESSION is a global
authormoodler <moodler>
Fri, 20 Jun 2008 07:33:33 +0000 (07:33 +0000)
committermoodler <moodler>
Fri, 20 Jun 2008 07:33:33 +0000 (07:33 +0000)
blocks/login/block_login.php

index d203c4b4633c7fa53023cb7b056016a2e50a8b70..6152507c83fe08e1740dd0262a154628857c3a50 100644 (file)
@@ -11,7 +11,7 @@ class block_login extends block_base {
     }
 
     function get_content () {
-        global $USER, $CFG;
+        global $USER, $CFG, $SESSION;
         $wwwroot = '';
         $signup = '';
 
@@ -36,7 +36,7 @@ class block_login extends block_base {
         // TODO: now that we have multiauth it is hard to find out if there is a way to change password
         $forgot = $wwwroot . '/login/forgot_password.php';
 
-        $username = get_moodle_cookie() === 'nobody' ? '' : get_moodle_cookie();
+        $username = $SESSION->get_moodle_cookie() === 'nobody' ? '' : $SESSION->get_moodle_cookie();
 
         $this->content->footer = '';
         $this->content->text = '';