mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
MDL-17458 fixed headers used during installation
This commit is contained in:
parent
2d6b0b04c1
commit
770f0cea30
@ -145,9 +145,7 @@
|
||||
|
||||
$strdatabasesetup = get_string("databasesetup");
|
||||
$navigation = build_navigation(array(array('name'=>$strdatabasesetup, 'link'=>null, 'type'=>'misc')));
|
||||
|
||||
print_header($strinstallation, $strinstallation, $navigation,
|
||||
"", upgrade_get_javascript(), false, " ", " ");
|
||||
print_header($strinstallation, $strinstallation, $navigation, "", upgrade_get_javascript(), false, " ", " ");
|
||||
|
||||
if (!$DB->setup_is_unicodedb()) {
|
||||
if (!$DB->change_db_encoding()) {
|
||||
|
@ -49,7 +49,9 @@ if (!empty($adminroot->errors)) {
|
||||
// to modify them
|
||||
admin_externalpage_print_header($focus);
|
||||
|
||||
print_box(get_string('upgradesettingsintro','admin'), 'generalbox');
|
||||
if (!empty($SITE->fullname) and !empty($SITE->shortname)) {
|
||||
print_box(get_string('upgradesettingsintro','admin'), 'generalbox');
|
||||
}
|
||||
|
||||
echo '<form action="upgradesettings.php" method="post" id="adminsettings">';
|
||||
echo '<div>';
|
||||
|
@ -4039,7 +4039,7 @@ function admin_externalpage_print_header($focus='') {
|
||||
|
||||
define('ADMIN_EXT_HEADER_PRINTED', 'true');
|
||||
|
||||
if (!empty($SITE->fullname)) {
|
||||
if (!empty($SITE->fullname) and !empty($SITE->shortname)) {
|
||||
$pageblocks = blocks_setup($PAGE);
|
||||
|
||||
$preferred_width_left = bounded_number(BLOCK_L_MIN_WIDTH,
|
||||
@ -4085,7 +4085,10 @@ function admin_externalpage_print_header($focus='') {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
print_header();
|
||||
$strinstallation = get_string('installation', 'install');
|
||||
$strsettings = get_string('settings');
|
||||
$navigation = build_navigation(array(array('name'=>$strsettings, 'link'=>null, 'type'=>'misc')));
|
||||
print_header($strinstallation, $strinstallation, $navigation, "", "", false, " ", " ");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3707,7 +3707,7 @@ function build_navigation($extranavlinks, $cm = null) {
|
||||
$navlinks = array();
|
||||
|
||||
//Site name
|
||||
if ($SITE) {
|
||||
if (!empty($SITE->shortname)) {
|
||||
$navlinks[] = array(
|
||||
'name' => format_string($SITE->shortname),
|
||||
'link' => "$CFG->wwwroot/",
|
||||
|
@ -196,8 +196,10 @@
|
||||
print_heading($userfullname);
|
||||
}
|
||||
} else if (!empty($USER->newadminuser)) {
|
||||
$strinstallation = get_string('installation', 'install');
|
||||
$strprimaryadminsetup = get_string('primaryadminsetup');
|
||||
print_header($strprimaryadminsetup, $strprimaryadminsetup);
|
||||
$navigation = build_navigation(array(array('name'=>$strprimaryadminsetup, 'link'=>null, 'type'=>'misc')));
|
||||
print_header($strinstallation, $strinstallation, $navigation, "", "", false, " ", " ");
|
||||
print_simple_box(get_string('configintroadmin', 'admin'), 'center', '50%');
|
||||
echo '<br />';
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user