MDL-10401 redirect to site/admin/ if section error found; merged from MOODLE_19_STABLE

This commit is contained in:
skodak
2007-12-19 18:05:09 +00:00
parent 863850d2d7
commit 2fec2300f7
+1 -1
View File
@@ -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;
}