From 141cb4865421b6063bf4dc0994867d1d2a3d87f7 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Tue, 4 Dec 2018 11:08:08 -0500 Subject: [PATCH] ImageListPager: Actor migration for buildQueryConds() This method got missed in I8d825eb0. Bug: T211061 Change-Id: Ice7446e54a42cbf48eae2a2092862a722650086c (cherry picked from commit 86b081aa4100bfde2c4903c16fd593f485954326) --- includes/specials/pagers/ImageListPager.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/includes/specials/pagers/ImageListPager.php b/includes/specials/pagers/ImageListPager.php index 3225256fd9..bb4f0b3432 100644 --- a/includes/specials/pagers/ImageListPager.php +++ b/includes/specials/pagers/ImageListPager.php @@ -134,7 +134,14 @@ class ImageListPager extends TablePager { $conds = []; if ( !is_null( $this->mUserName ) ) { - $conds[$prefix . '_user_text'] = $this->mUserName; + // getQueryInfoReal() should have handled the tables and joins. + $dbr = wfGetDB( DB_REPLICA ); + $actorWhere = ActorMigration::newMigration()->getWhere( + $dbr, + $prefix . '_user', + User::newFromName( $this->mUserName, false ) + ); + $conds[] = $actorWhere['conds']; } if ( $this->mSearch !== '' ) { -- 2.20.1