MDL-21204 fixed incorrect url params, credit goes to Gabriel Dias
authorPetr Skoda <skodak@moodle.org>
Mon, 28 Dec 2009 19:42:19 +0000 (19:42 +0000)
committerPetr Skoda <skodak@moodle.org>
Mon, 28 Dec 2009 19:42:19 +0000 (19:42 +0000)
admin/roles/define.php

index 9ecd045..a959519 100755 (executable)
@@ -65,7 +65,7 @@
     $systemcontext = get_context_instance(CONTEXT_SYSTEM);
     require_login();
     require_capability('moodle/role:manage', $systemcontext);
-    admin_externalpage_setup('defineroles', '', array($action, $roleid), $defineurl);
+    admin_externalpage_setup('defineroles', '', array('action' => $action, 'roleid' => $roleid), $defineurl);
 
 /// Handle the cancel button.
     if (optional_param('cancel', false, PARAM_BOOL)) {