From: Aaron Schulz Date: Sat, 6 Sep 2008 17:30:23 +0000 (+0000) Subject: Might as well be more consistent with "change protection" links X-Git-Tag: 1.31.0-rc.0~45436 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=fef7d4d95d7ee1fedf219f5a7e75a263566cccae;p=lhc%2Fweb%2Fwiklou.git Might as well be more consistent with "change protection" links --- diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index 28b0ea4f1a..a73e4781f3 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -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' ) . ')'; }