3x global $wgOut
authorDomas Mituzas <midom@users.mediawiki.org>
Sun, 21 Feb 2010 17:25:25 +0000 (17:25 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Sun, 21 Feb 2010 17:25:25 +0000 (17:25 +0000)
includes/specials/SpecialUserrights.php

index 2e2e962..6d9def6 100644 (file)
@@ -82,7 +82,6 @@ class UserrightsPage extends SpecialPage {
 
                if( !$this->userCanChangeRights( $wgUser, true ) ) {
                        // fixme... there may be intermediate groups we can mention.
-                       global $wgOut;
                        $wgOut->showPermissionsErrorPage( array( array(
                                $wgUser->isAnon()
                                        ? 'userrights-nologin'
@@ -91,7 +90,6 @@ class UserrightsPage extends SpecialPage {
                }
 
                if ( wfReadOnly() ) {
-                       global $wgOut;
                        $wgOut->readOnlyPage();
                        return;
                }