]> git.mjollnir.org Git - moodle.git/commitdiff
Don't show tabs when creating admin user
authormoodler <moodler>
Sun, 16 Apr 2006 16:49:28 +0000 (16:49 +0000)
committermoodler <moodler>
Sun, 16 Apr 2006 16:49:28 +0000 (16:49 +0000)
user/edit.php

index dce87af5c246a0b9e9314e3959291b2d3bd2c963..a3c8bedddabeb574ec03f48cb94233776fc07406 100644 (file)
     }
 
 
-/// Print tabs at top
-/// This same call is made in:
-///     /user/view.php
-///     /user/edit.php
-///     /course/user.php
-    $currenttab = 'editprofile';
-    include('tabs.php');
-
-    
-
-    $teacher = strtolower($course->teacher);
-    if (!isadmin()) {
-        $teacheronly = "(".get_string("teacheronly", "", $teacher).")";
-    } else {
-        $teacheronly = "";
-    }
-
     if (isset($USER->newadminuser)) {
-        print_simple_box(get_string("configintroadmin", 'admin'), "center", "50%");
-        echo "<br />";
+        print_simple_box(get_string('configintroadmin', 'admin'), 'center', '50%');
+        echo '<br />';
+    } else {
+        /// Print tabs at top
+        /// This same call is made in:
+        ///     /user/view.php
+        ///     /user/edit.php
+        ///     /course/user.php
+        $currenttab = 'editprofile';
+        include('tabs.php');
     }
 
     print_simple_box_start("center");
         echo "</center>";
     }
 
+    $teacher = strtolower($course->teacher);
+    if (!isadmin()) {
+        $teacheronly = '('.get_string('teacheronly', '', $teacher).')';
+    } else {
+        $teacheronly = '';
+    }
+
     include("edit.html");
 
     if (!isadmin()) {      /// Lock all the locked fields using Javascript