Browse files

MDL-26609 Provide a link to a docs page for more help with Moodle ver…

…sions and their maturity

Thanks Martin Dougiamas for this suggestion.
  • Loading branch information...
1 parent 3d673fc commit dc41abd8082797cfedf92ff15b0c0fc4a7bc4e2c @mudrd8mz mudrd8mz committed Mar 3, 2011
Showing with 11 additions and 3 deletions.
  1. +1 −0 admin/cli/install.php
  2. +1 −0 admin/cli/upgrade.php
  3. +9 −3 admin/index.php
View
1 admin/cli/install.php
@@ -414,6 +414,7 @@
cli_separator();
cli_heading(get_string('notice'));
echo get_string('maturitycorewarning', 'admin', $maturitylevel) . PHP_EOL;
+ echo get_string('morehelp') . ': ' . get_docs_url('admin/versions') . PHP_EOL;
echo get_string('continue') . PHP_LOL;
$prompt = get_string('cliyesnoprompt', 'admin');
$input = cli_input($prompt, '', array(get_string('clianswerno', 'admin'), get_string('cliansweryes', 'admin')));
View
1 admin/cli/upgrade.php
@@ -112,6 +112,7 @@
cli_separator();
cli_heading(get_string('notice'));
echo get_string('maturitycorewarning', 'admin', $maturitylevel) . PHP_EOL;
+ echo get_string('morehelp') . ': ' . get_docs_url('admin/versions') . PHP_EOL;
cli_separator();
} else {
cli_error(get_string('maturitycorewarning', 'admin', $maturitylevel));
View
12 admin/index.php
@@ -140,7 +140,10 @@
// main version.php declares moodle code maturity
if ($maturity < MATURITY_STABLE) {
$maturitylevel = get_string('maturity'.$maturity, 'admin');
- echo $OUTPUT->box(get_string('maturitycorewarning', 'admin', $maturitylevel), 'generalbox maturitywarning');
+ echo $OUTPUT->box(
+ $OUTPUT->container(get_string('maturitycorewarning', 'admin', $maturitylevel)) .
+ $OUTPUT->container($OUTPUT->doc_link('admin/versions', get_string('morehelp'))),
+ 'generalbox maturitywarning');
}
}
@@ -207,8 +210,11 @@
// main version.php declares moodle code maturity
if ($maturity < MATURITY_STABLE) {
$maturitylevel = get_string('maturity'.$maturity, 'admin');
- echo $OUTPUT->box(get_string('maturitycorewarning', 'admin', $maturitylevel), 'generalbox maturitywarning');
- }
+ echo $OUTPUT->box(
+ $OUTPUT->container(get_string('maturitycorewarning', 'admin', $maturitylevel)) .
+ $OUTPUT->container($OUTPUT->doc_link('admin/versions', get_string('morehelp'))),
+ 'generalbox maturitywarning');
+}
}
$continueurl = new moodle_url('index.php', array('confirmupgrade' => 1));
$cancelurl = new moodle_url('index.php');

0 comments on commit dc41abd

Please sign in to comment.