X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2Fpagers%2FContribsPager.php;h=9900340957d3bb8570a4a3475e3717f9d0a330a7;hb=00b8238613d1a1123e0991efe6053a03cc1c7b76;hp=81a1f5a506a6ca4eb4cc4c29ca4f78833f84ad8c;hpb=942b6f83361f254041e42b150f3a35e9115b5a22;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/pagers/ContribsPager.php b/includes/specials/pagers/ContribsPager.php index 81a1f5a506..9900340957 100644 --- a/includes/specials/pagers/ContribsPager.php +++ b/includes/specials/pagers/ContribsPager.php @@ -221,14 +221,12 @@ class ContribsPager extends RangeChronologicalPager { $conds = ActorMigration::newMigration()->getWhere( $this->mDb, 'rev_user', $user ); $queryInfo['conds'][] = $conds['conds']; // Force the appropriate index to avoid bad query plans (T189026) - if ( count( $conds['orconds'] ) === 1 ) { - if ( isset( $conds['orconds']['actor'] ) ) { - // @todo: This will need changing when revision_comment_temp goes away - $queryInfo['options']['USE INDEX']['temp_rev_user'] = 'actor_timestamp'; - } else { - $queryInfo['options']['USE INDEX']['revision'] = - isset( $conds['orconds']['userid'] ) ? 'user_timestamp' : 'usertext_timestamp'; - } + if ( isset( $conds['orconds']['actor'] ) ) { + // @todo: This will need changing when revision_comment_temp goes away + $queryInfo['options']['USE INDEX']['temp_rev_user'] = 'actor_timestamp'; + } else { + $queryInfo['options']['USE INDEX']['revision'] = + isset( $conds['orconds']['userid'] ) ? 'user_timestamp' : 'usertext_timestamp'; } } } @@ -502,22 +500,22 @@ class ContribsPager extends RangeChronologicalPager { // For some reason rev_parent_id isn't populated for this row. // Its rumoured this is true on wikipedia for some revisions (T36922). // Next best thing is to have the total number of bytes. - $chardiff = ' . . '; + $chardiff = ' '; $chardiff .= Linker::formatRevisionSize( $row->rev_len ); - $chardiff .= ' . . '; + $chardiff .= ' '; } else { $parentLen = 0; if ( isset( $this->mParentLens[$row->rev_parent_id] ) ) { $parentLen = $this->mParentLens[$row->rev_parent_id]; } - $chardiff = ' . . '; + $chardiff = ' '; $chardiff .= ChangesList::showCharacterDifference( $parentLen, $row->rev_len, $this->getContext() ); - $chardiff .= ' . . '; + $chardiff .= ' '; } $lang = $this->getLanguage(); @@ -543,7 +541,8 @@ class ContribsPager extends RangeChronologicalPager { $userlink = ''; if ( ( $this->contribs == 'newbie' && !$rev->isDeleted( Revision::DELETED_USER ) ) || $this->isQueryableRange( $this->target ) ) { - $userlink = ' . . ' . $lang->getDirMark() + $userlink = ' ' + . $lang->getDirMark() . Linker::userLink( $rev->getUser(), $rev->getUserText() ); $userlink .= ' ' . $this->msg( 'parentheses' )->rawParams( Linker::userTalkLink( $rev->getUser(), $rev->getUserText() ) )->escaped() . ' ';