]> git.mjollnir.org Git - moodle.git/commitdiff
NOBUG: Fixed PAGE->set_url() regression
authormudrd8mz <mudrd8mz>
Fri, 2 Oct 2009 11:42:53 +0000 (11:42 +0000)
committermudrd8mz <mudrd8mz>
Fri, 2 Oct 2009 11:42:53 +0000 (11:42 +0000)
$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.

admin/xmldb/index.php

index 4706f50292f012b4a5e676d70c5267a6493fe913..6a4723793d9bbd7de9b8965e8d2e087207e83eec 100644 (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';