Back out r42181 "(bug 6179) Actually the log for people who can't edit"
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 19 Oct 2008 23:53:52 +0000 (23:53 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 19 Oct 2008 23:53:52 +0000 (23:53 +0000)
There's no link to the full log; the last entry may not always be very clear. It's also pretty long and technical, filled with crap like:

23:49, 19 October 2008 WikiSysop (Talk | contribs) changed protection level for "Main Page" [edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite) ‎ (hist)

It would probably be more user-friendly to show the comment describing the purpose of the protection... which of course might not have anything to do with the last log entry (which might be "changing expiration date" or something).

Backing out for now...

includes/OutputPage.php

index 2ee510c..e07c74b 100644 (file)
@@ -1259,14 +1259,7 @@ class OutputPage {
                        } else {
                                $this->setPageTitle( wfMsg( 'badaccess' ) );
                        }
-                       if( $protected ) {
-                               $this->addHTML( "<div class='mw-warning-with-logexcerpt'>\n" );
-                       }
                        $this->addWikiText( $this->formatPermissionsErrorMessage( $reasons, $action ) );
-                       if( $protected ) {
-                               LogEventsList::showLogExtract( $this, 'protect', $wgTitle->getPrefixedText(), '', 1 );
-                               $this->addHTML( "</div>\n" );
-                       }
                } else {
                        // Wiki is read only
                        $this->setPageTitle( wfMsg( 'readonly' ) );