From: Aaron Schulz Date: Fri, 17 Oct 2008 23:25:46 +0000 (+0000) Subject: (bug 6179) Actually the log for people who can't edit X-Git-Tag: 1.31.0-rc.0~44710 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=ea5f05d900ca48c6c5af95cffb6e685252f85657;p=lhc%2Fweb%2Fwiklou.git (bug 6179) Actually the log for people who can't edit --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index e07c74b744..2ee510c5d6 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1259,7 +1259,14 @@ class OutputPage { } else { $this->setPageTitle( wfMsg( 'badaccess' ) ); } + if( $protected ) { + $this->addHTML( "
\n" ); + } $this->addWikiText( $this->formatPermissionsErrorMessage( $reasons, $action ) ); + if( $protected ) { + LogEventsList::showLogExtract( $this, 'protect', $wgTitle->getPrefixedText(), '', 1 ); + $this->addHTML( "
\n" ); + } } else { // Wiki is read only $this->setPageTitle( wfMsg( 'readonly' ) );