From: Brad Jorsch Date: Tue, 4 Dec 2018 16:08:08 +0000 (-0500) Subject: ImageListPager: Actor migration for buildQueryConds() X-Git-Tag: 1.31.2~54 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=141cb4865421b6063bf4dc0994867d1d2a3d87f7;ds=sidebyside ImageListPager: Actor migration for buildQueryConds() This method got missed in I8d825eb0. Bug: T211061 Change-Id: Ice7446e54a42cbf48eae2a2092862a722650086c (cherry picked from commit 86b081aa4100bfde2c4903c16fd593f485954326) --- 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 !== '' ) {