MDL-9796 environment - make install & upgrade to ignore dataroot xml file (ENV_SELECT_RELEASE)

This commit is contained in:
stronk7 2009-02-14 23:12:04 +00:00
parent 829fa07417
commit 493c3651bf
2 changed files with 5 additions and 5 deletions

View File

@ -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();

View File

@ -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');