OutputPage::formatPermissionsErrorMessage() expects an array of arrays, passing an...
authorAlex Z <mrzman@users.mediawiki.org>
Wed, 5 Aug 2009 04:20:13 +0000 (04:20 +0000)
committerAlex Z <mrzman@users.mediawiki.org>
Wed, 5 Aug 2009 04:20:13 +0000 (04:20 +0000)
includes/specials/SpecialUserrights.php

index f0aafd9..8b77669 100644 (file)
@@ -82,10 +82,10 @@ class UserrightsPage extends SpecialPage {
                if( !$this->userCanChangeRights( $wgUser, true ) ) {
                        // fixme... there may be intermediate groups we can mention.
                        global $wgOut;
-                       $wgOut->showPermissionsErrorPage( array(
+                       $wgOut->showPermissionsErrorPage( array( array(
                                $wgUser->isAnon()
                                        ? 'userrights-nologin'
-                                       : 'userrights-notallowed' ) );
+                                       : 'userrights-notallowed' ) ) );
                        return;
                }