auth MDL-19788 Upgrade deprecated function calls
authorsamhemelryk <samhemelryk>
Wed, 30 Sep 2009 06:38:52 +0000 (06:38 +0000)
committersamhemelryk <samhemelryk>
Wed, 30 Sep 2009 06:38:52 +0000 (06:38 +0000)
auth/shibboleth/index.php
auth/shibboleth/login.php

index 7961af7b3af59c93429241c2009630776d574270..22d46f474a5956b1a8485b84bdf040ede41e4916 100644 (file)
@@ -66,7 +66,7 @@
             }
 
             /// Go to my-moodle page instead of homepage if mymoodleredirect enabled
-            if (!has_capability('moodle/site:config',get_context_instance(CONTEXT_SYSTEM)) and !empty($CFG->mymoodleredirect) and !isguest()) {
+            if (!has_capability('moodle/site:config',get_context_instance(CONTEXT_SYSTEM)) and !empty($CFG->mymoodleredirect) and !isguestuser()) {
                 if ($urltogo == $CFG->wwwroot or $urltogo == $CFG->wwwroot.'/' or $urltogo == $CFG->wwwroot.'/index.php') {
                     $urltogo = $CFG->wwwroot.'/my/';
                 }
index 107ce249c752c2980addc96ac21e790322615bb0..8be9f9ef36639d2987f36adbccbb57d116703fcb 100644 (file)
@@ -20,7 +20,7 @@ httpsrequired();
 
 /// Define variables used in page
     if (!$site = get_site()) {
-        error("No site found!");
+        print_error('nosite');
     }
 
     if (empty($CFG->langmenu)) {