Skip to content

Commit

Permalink
MDL-10401 redirect to site/admin/ if section error found; merged from…
Browse files Browse the repository at this point in the history
… MOODLE_19_STABLE
  • Loading branch information
skodak committed Dec 19, 2007
1 parent 863850d commit 2fec230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adminlib.php
Expand Up @@ -3811,7 +3811,7 @@ function admin_externalpage_setup($section) {
$extpage =& $adminroot->locate($section);

if (empty($extpage) or !is_a($extpage, 'admin_externalpage')) {
error(get_string('sectionerror','admin'));
error(get_string('sectionerror','admin'), "$CFG->wwwroot/$CFG->admin/");
die;
}

Expand Down

0 comments on commit 2fec230

Please sign in to comment.