Might as well be more consistent with "change protection" links
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 6 Sep 2008 17:30:23 +0000 (17:30 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 6 Sep 2008 17:30:23 +0000 (17:30 +0000)
includes/LogEventsList.php

index 28b0ea4..a73e478 100644 (file)
@@ -241,7 +241,7 @@ class LogEventsList {
                } else if( self::typeAction($row,'protect',array('modify','protect','unprotect')) ) {
                        $revert = '(' .  $this->skin->makeKnownLinkObj( $title, $this->message['hist'], 
                                'action=history&offset=' . urlencode($row->log_timestamp) ) . ')';
-                       if( self::typeAction($row,'protect','modify') && $wgUser->isAllowed('protect') ) {
+                       if( $wgUser->isAllowed('protect') && $row->log_action != 'unprotect' ) {
                                $revert .= ' (' .  $this->skin->makeKnownLinkObj( $title, $this->message['protect_change'], 
                                        'action=unprotect' ) . ')';
                        }