Skip to content
Permalink
Browse files

Merge branch 'MDL-53356-30' of git://github.com/cameron1729/moodle in…

…to MOODLE_30_STABLE
  • Loading branch information...
dmonllao committed Mar 29, 2016
2 parents 0a02b7c + c0eeb8c commit 92b0b88db1a1476f115e6035e2b4cf457e6afa9b
Showing with 5 additions and 1 deletion.
  1. +5 −1 admin/settings.php
@@ -20,7 +20,11 @@
$settingspage = $adminroot->locate($section, true);
if (empty($settingspage) or !($settingspage instanceof admin_settingpage)) {
print_error('sectionerror', 'admin', "$CFG->wwwroot/$CFG->admin/");
if (moodle_needs_upgrading()) {
redirect(new moodle_url('/admin/index.php'));
} else {
print_error('sectionerror', 'admin', "$CFG->wwwroot/$CFG->admin/");
}
die;
}

0 comments on commit 92b0b88

Please sign in to comment.
You can’t perform that action at this time.