mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
MDL-9796 environment - make install & upgrade to ignore dataroot xml file (ENV_SELECT_RELEASE)
This commit is contained in:
parent
829fa07417
commit
493c3651bf
@ -488,8 +488,8 @@ if (!file_exists(dirname(dirname(__FILE__)) . '/config.php')) {
|
||||
//check connection to database
|
||||
|
||||
if ($dbconnected) {
|
||||
/// Execute environment check, printing results
|
||||
if (!check_moodle_environment($INSTALL['release'], $environment_results, false)) {
|
||||
/// Execute environment check, not printing results
|
||||
if (!check_moodle_environment($INSTALL['release'], $environment_results, false, ENV_SELECT_RELEASE)) {
|
||||
$errormsg = get_string('errorsinenvironment', 'install') . "\n";
|
||||
}
|
||||
} else {
|
||||
@ -904,7 +904,7 @@ if ( file_exists(dirname(dirname(__FILE__)) . '/config.php')) {
|
||||
require_once($CFG->libdir.'/environmentlib.php');
|
||||
|
||||
console_write('environment', 'admin');
|
||||
if (!check_moodle_environment($release, $environment_results, false)) {
|
||||
if (!check_moodle_environment($release, $environment_results, false, ENV_SELECT_RELEASE)) {
|
||||
// Print Environment Status
|
||||
if ($verbose > CLI_NO) {
|
||||
print_newline();
|
||||
|
@ -135,7 +135,7 @@
|
||||
print_box($releasenoteslink, 'generalbox boxaligncenter boxwidthwide');
|
||||
|
||||
require_once($CFG->libdir.'/environmentlib.php');
|
||||
if (!check_moodle_environment($release, $environment_results, true)) {
|
||||
if (!check_moodle_environment($release, $environment_results, true, ENV_SELECT_RELEASE)) {
|
||||
print_upgrade_reload("index.php?agreelicense=1&lang=$CFG->lang");
|
||||
} else {
|
||||
notify(get_string('environmentok', 'admin'), 'notifysuccess');
|
||||
@ -221,7 +221,7 @@
|
||||
|
||||
require_once($CFG->libdir.'/environmentlib.php');
|
||||
print_heading(get_string('environment', 'admin'));
|
||||
if (!check_moodle_environment($release, $environment_results, true)) {
|
||||
if (!check_moodle_environment($release, $environment_results, true, ENV_SELECT_RELEASE)) {
|
||||
print_upgrade_reload('index.php?confirmupgrade=1');
|
||||
} else {
|
||||
notify(get_string('environmentok', 'admin'), 'notifysuccess');
|
||||
|
Loading…
x
Reference in New Issue
Block a user