From d43c8027f5ee01ef0de3c46f1305b21ef10f9895 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 19 May 2009 19:19:41 +0000 Subject: [PATCH] (bug 17060) Renders edit comments the same for all users wrt to revdelete --- includes/LogEventsList.php | 1 - includes/PageHistory.php | 7 ++----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index 7fee678d69..c56a08c9c4 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -654,7 +654,6 @@ class LogPager extends ReverseChronologicalPager { $tables = array( 'logging', 'user' ); $this->mConds[] = 'user_id = log_user'; $groupBy = false; - $index = array(); # Add log_search table if there are conditions on it if( array_key_exists('ls_field',$this->mConds) ) { $tables[] = 'log_search'; diff --git a/includes/PageHistory.php b/includes/PageHistory.php index d33530cecc..c9e9578a7a 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -373,13 +373,10 @@ class PageHistory { function revLink( $rev ) { global $wgLang; $date = $wgLang->timeanddate( wfTimestamp(TS_MW, $rev->getTimestamp()), true ); - if( $rev->userCan( Revision::DELETED_TEXT ) ) { + if( !$rev->isDeleted( Revision::DELETED_TEXT ) ) { $link = $this->mSkin->makeKnownLinkObj( $this->mTitle, $date, "oldid=" . $rev->getId() ); } else { - $link = $date; - } - if( $rev->isDeleted( Revision::DELETED_TEXT ) ) { - $link = "$link"; + $link = "$date"; } return $link; } -- 2.20.1