From: moodler Date: Sun, 16 Apr 2006 16:49:28 +0000 (+0000) Subject: Don't show tabs when creating admin user X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0236ec73bef02a55219e6dda624d25a5b67ff931;p=moodle.git Don't show tabs when creating admin user --- diff --git a/user/edit.php b/user/edit.php index dce87af5c2..a3c8beddda 100644 --- a/user/edit.php +++ b/user/edit.php @@ -314,26 +314,17 @@ } -/// 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 "
"; + print_simple_box(get_string('configintroadmin', 'admin'), 'center', '50%'); + echo '
'; + } 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"); @@ -344,6 +335,13 @@ echo ""; } + $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