NOBUG: Fixed PAGE->set_url() regression

$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.
This commit is contained in:
mudrd8mz 2009-10-02 11:42:53 +00:00
parent 7409013e79
commit f60ecadf2c

View File

@ -61,8 +61,6 @@
/// 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';