$PAGE->set_url() is already properly called by admin_externalpage_setup()
with a required 'section' param included. We can't override the PAGE's
URL and throw away the params set previously. This may be an issue at
other external admin pages, too.
/// Body of the script, based on action, we delegate the work
$action = optional_param ('action', 'main_view', PARAM_ALPHAEXT);
- $PAGE->set_url('/admin/xmldb/index.php', array('action' => $action));
-
/// Get the action path and invoke it
$actionsroot = "$CFG->dirroot/$CFG->admin/xmldb/actions";
$actionclass = $action . '.class.php';