r40545 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40544‎ | r40545 | r40546 >
Date:17:30, 6 September 2008
Author:aaron
Status:old
Tags:
Comment:
Might as well be more consistent with "change protection" links
Modified paths:
  • /trunk/phase3/includes/LogEventsList.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/LogEventsList.php
@@ -241,7 +241,7 @@
242242 } else if( self::typeAction($row,'protect',array('modify','protect','unprotect')) ) {
243243 $revert = '(' . $this->skin->makeKnownLinkObj( $title, $this->message['hist'],
244244 'action=history&offset=' . urlencode($row->log_timestamp) ) . ')';
245 - if( self::typeAction($row,'protect','modify') && $wgUser->isAllowed('protect') ) {
 245+ if( $wgUser->isAllowed('protect') && $row->log_action != 'unprotect' ) {
246246 $revert .= ' (' . $this->skin->makeKnownLinkObj( $title, $this->message['protect_change'],
247247 'action=unprotect' ) . ')';
248248 }