From: Alexandre Emsenhuber Date: Tue, 8 Feb 2011 15:19:49 +0000 (+0000) Subject: We have OutputPage::showPermissionsErrorPage() for that X-Git-Tag: 1.31.0-rc.0~32113 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=b85a785c22295a177a2056c30090ba2b5e158239;p=lhc%2Fweb%2Fwiklou.git We have OutputPage::showPermissionsErrorPage() for that --- diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 9fb13375fb..c836352073 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -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() );