]> git.mjollnir.org Git - moodle.git/commitdiff
used is_internal_auth() to decide if to show "Add new user" link
authorgustav_delius <gustav_delius>
Mon, 31 May 2004 08:20:13 +0000 (08:20 +0000)
committergustav_delius <gustav_delius>
Mon, 31 May 2004 08:20:13 +0000 (08:20 +0000)
admin/user.php

index c127c865459e2c32b348012146804af89eaf9137..322f8a24961fdfcb610444e1efa2b4ad0c5cad9e 100644 (file)
             }
             echo "</form>";    
             echo "</td></tr></table>";
-            if ($CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual"){
+            if (is_internal_auth()){
                 print_heading("<a href=\"user.php?newuser=true\">".get_string("addnewuser")."</a>");
             }
 
 
         }
 
-        if ($CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual"){
+        if (is_internal_auth()){
             print_heading("<a href=\"user.php?newuser=true\">".get_string("addnewuser")."</a>");
         }