mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
Don't show tabs when creating admin user
This commit is contained in:
parent
9e458bb388
commit
0236ec73be
@ -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 "<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");
|
||||
@ -344,6 +335,13 @@
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user