Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -1259,7 +1259,14 @@ |
1260 | 1260 | } else { |
1261 | 1261 | $this->setPageTitle( wfMsg( 'badaccess' ) ); |
1262 | 1262 | } |
| 1263 | + if( $protected ) { |
| 1264 | + $this->addHTML( "<div class='mw-warning-with-logexcerpt'>\n" ); |
| 1265 | + } |
1263 | 1266 | $this->addWikiText( $this->formatPermissionsErrorMessage( $reasons, $action ) ); |
| 1267 | + if( $protected ) { |
| 1268 | + LogEventsList::showLogExtract( $this, 'protect', $wgTitle->getPrefixedText(), '', 1 ); |
| 1269 | + $this->addHTML( "</div>\n" ); |
| 1270 | + } |
1264 | 1271 | } else { |
1265 | 1272 | // Wiki is read only |
1266 | 1273 | $this->setPageTitle( wfMsg( 'readonly' ) ); |