mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Page finished. Now it's possible to check current and future
moodle versions... PostgreSQL people, check it against your servers, please. In 1-2 days I'll merge this changes to 15_STABLE, to allow moodlers to pre-check their environments...
This commit is contained in:
parent
da03cdc4b6
commit
2455eace43
@ -64,7 +64,9 @@
|
||||
print_heading($strenvironment);
|
||||
|
||||
/// Start of main box
|
||||
print_simple_box("<center>".$stradminhelpenvironment."</center>", "center", "50%");
|
||||
print_simple_box_start('center');
|
||||
|
||||
echo "<center>".$stradminhelpenvironment."</center><br />";
|
||||
|
||||
/// 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 '<form method="post" action="'.$CFG->wwwroot.'/admin/environment.php">';
|
||||
echo '<center><form method="post" action="'.$CFG->wwwroot.'/admin/environment.php">';
|
||||
echo $strmoodleversion.' ';
|
||||
choose_from_menu ($versions, 'version', $version, null, 'this.form.submit();' );
|
||||
echo '<input type="hidden" name="sesskey" value="'.$USER->sesskey.'" />';
|
||||
|
||||
echo '</form>';
|
||||
|
||||
echo '</form></center>';
|
||||
/// 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()) {
|
||||
|
@ -430,8 +430,11 @@
|
||||
get_string('adminhelpmanagedatabase'));
|
||||
}
|
||||
if (!empty($CFG->enablestats)) {
|
||||
$table->data[] = array('<strong><a href="reports.php">'.get_string('reports').'</a></strong>', get_string('adminhelpreports'));
|
||||
$table->data[] = array('<strong><a href="reports.php">'.get_string('reports').'</a></strong>',
|
||||
'<div class="explanation">'.get_string('adminhelpreports').'</div>');
|
||||
}
|
||||
$table->data[] = array('<strong><a href="environment.php">'.get_string('environment','admin').'</a></strong>',
|
||||
'<div class="explanation">'.get_string('adminhelpenvironment').'</div>');
|
||||
|
||||
|
||||
print_table($table);
|
||||
|
Loading…
x
Reference in New Issue
Block a user