We have OutputPage::showPermissionsErrorPage() for that
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 8 Feb 2011 15:19:49 +0000 (15:19 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 8 Feb 2011 15:19:49 +0000 (15:19 +0000)
includes/ProtectionForm.php

index 9fb1337..c836352 100644 (file)
@@ -232,7 +232,7 @@ class ProtectionForm {
                        if( wfReadOnly() ) {
                                $wgOut->readOnlyPage();
                        } elseif( $this->mPermErrors ) {
-                               $wgOut->addWikiText( $wgOut->formatPermissionsErrorMessage( $this->mPermErrors ) );
+                               $wgOut->showPermissionsErrorPage( $this->mPermErrors );
                        }
                } else {
                        $wgOut->addWikiMsg( 'protect-text', $this->mTitle->getPrefixedText() );