From b85a785c22295a177a2056c30090ba2b5e158239 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 8 Feb 2011 15:19:49 +0000 Subject: [PATCH] We have OutputPage::showPermissionsErrorPage() for that --- includes/ProtectionForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() ); -- 2.20.1