MDL-33382 CLI install and upgrade scripts display hint on --allow-unstable in non-interactive mode

This commit is contained in:
David Mudrak
2012-05-28 10:59:22 +02:00
parent 4631e39533
commit 2da7fbc0c2
3 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -425,7 +425,8 @@ if (isset($maturity)) {
exit(1);
}
} else {
cli_error(get_string('maturitycorewarning', 'admin'));
cli_problem(get_string('maturitycorewarning', 'admin', $maturitylevel));
cli_error(get_string('maturityallowunstable', 'admin'));
}
}
}
+2 -1
View File
@@ -132,7 +132,8 @@ if (isset($maturity)) {
echo get_string('morehelp') . ': ' . get_docs_url('admin/versions') . PHP_EOL;
cli_separator();
} else {
cli_error(get_string('maturitycorewarning', 'admin', $maturitylevel));
cli_problem(get_string('maturitycorewarning', 'admin', $maturitylevel));
cli_error(get_string('maturityallowunstable', 'admin'));
}
}
}
+1
View File
@@ -636,6 +636,7 @@ $string['maturity50'] = 'Alpha';
$string['maturity100'] = 'Beta';
$string['maturity150'] = 'Release candidate';
$string['maturity200'] = 'Stable version';
$string['maturityallowunstable'] = 'Hint: You may want to run this script with --allow-unstable option';
$string['maturitycoreinfo'] = 'Your site is currently running unstable "{$a}" development code.';
$string['maturitycorewarning'] = 'The version of Moodle that you are about to install or upgrade to contains
unstable "{$a}" development code that is not suitable for use on most production