From bd538b883ce4ecbdd07261a571c33ebea3a25c9e Mon Sep 17 00:00:00 2001 From: Victor Vasiliev Date: Sun, 13 Apr 2008 14:49:13 +0000 Subject: [PATCH] Fix CentralAuth log --- includes/LogEventsList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index 254dd7df8a..5124201d97 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -228,7 +228,7 @@ class LogEventsList { '&wpMovetalk=0' ) . ')'; } // Show undelete link - } else if( $row->log_action == 'delete' && $wgUser->isAllowed( 'delete' ) ) { + } else if( $row->log_type == 'delete' && $row->log_action == 'delete' && $wgUser->isAllowed( 'delete' ) ) { $revert = '(' . $this->skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Undelete' ), $this->message['undeletelink'], 'target='. urlencode( $title->getPrefixedDBkey() ) ) . ')'; // Show unblock link -- 2.20.1