From 746d82c0da67a4d207f37bd4a147a9c342c83a5e Mon Sep 17 00:00:00 2001 From: Jure Kajzer Date: Fri, 13 May 2011 23:08:38 +0000 Subject: [PATCH] * bug 28571 * Not sure about this one: the index i changed is defined as ar_usertext_timestamp in tables.sql, but created and used as usertext_timestamp. --- includes/specials/SpecialDeletedContributions.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/specials/SpecialDeletedContributions.php b/includes/specials/SpecialDeletedContributions.php index cb1ee946b7..c39a220667 100644 --- a/includes/specials/SpecialDeletedContributions.php +++ b/includes/specials/SpecialDeletedContributions.php @@ -63,7 +63,7 @@ class DeletedContribsPager extends IndexPager { 'tables' => array( 'archive' ), 'fields' => array( 'ar_rev_id', 'ar_namespace', 'ar_title', 'ar_timestamp', 'ar_comment', 'ar_minor_edit', - 'ar_user', 'ar_user_text', 'ar_deleted' + 'ar_user', 'ar_user_text', 'ar_deleted', 'ar_len' ), 'conds' => $conds, 'options' => array( 'USE INDEX' => $index ) @@ -74,7 +74,7 @@ class DeletedContribsPager extends IndexPager { $condition = array(); $condition['ar_user_text'] = $this->target; - $index = 'usertext_timestamp'; + $index = array( 'archive' => 'ar_usertext_timestamp' ); return array( $index, $condition ); } @@ -235,7 +235,8 @@ class DeletedContribsPager extends IndexPager { wfMsg( 'parentheses', $wgLang->pipeList( array( $last, $dellog, $reviewlink ) ) ) ); - $ret = "{$del}{$link} {$tools} . . {$mflag} {$pagelink} {$comment}"; + $diffOut = ' . . '.ChangesList::showCharacterDifference( $row->ar_len, 0 ); + $ret = "{$del}{$link} {$tools} . . {$mflag} {$diffOut} {$pagelink} {$comment}"; # Denote if username is redacted for this edit if( $rev->isDeleted( Revision::DELETED_USER ) ) { -- 2.20.1