diff --git a/admin/environment.php b/admin/environment.php index 7fcc1f2135f..361319d8d04 100644 --- a/admin/environment.php +++ b/admin/environment.php @@ -64,7 +64,9 @@ print_heading($strenvironment); /// Start of main box - print_simple_box("
".$stradminhelpenvironment."
", "center", "50%"); + print_simple_box_start('center'); + + echo "
".$stradminhelpenvironment."

"; /// Get current Moodle version $current_version = $CFG->release; @@ -93,20 +95,19 @@ } } -/// Start of main box - print_simple_box_start('center'); - /// Print form and popup menu - echo '
'; + echo '
'; echo $strmoodleversion.' '; choose_from_menu ($versions, 'version', $version, null, 'this.form.submit();' ); echo ''; - - echo ''; - + echo '
'; /// End of main box print_simple_box_end(); +/// Gather and show results + $status = check_moodle_environment($version, $environment_results); + + /// Process action if ($form = data_submitted()) { diff --git a/admin/index.php b/admin/index.php index 76af804ec3c..ff8f0c17036 100644 --- a/admin/index.php +++ b/admin/index.php @@ -430,8 +430,11 @@ get_string('adminhelpmanagedatabase')); } if (!empty($CFG->enablestats)) { - $table->data[] = array(''.get_string('reports').'', get_string('adminhelpreports')); + $table->data[] = array(''.get_string('reports').'', + '
'.get_string('adminhelpreports').'
'); } + $table->data[] = array(''.get_string('environment','admin').'', + '
'.get_string('adminhelpenvironment').'
'); print_table($table);