From: Brad Jorsch Date: Tue, 4 Dec 2018 16:08:08 +0000 (-0500) Subject: ImageListPager: Actor migration for buildQueryConds() X-Git-Tag: 1.34.0-rc.0~3326^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=86b081aa4100bfde2c4903c16fd593f485954326;p=lhc%2Fweb%2Fwiklou.git ImageListPager: Actor migration for buildQueryConds() This method got missed in I8d825eb0. Bug: T211061 Change-Id: Ice7446e54a42cbf48eae2a2092862a722650086c --- diff --git a/includes/specials/pagers/ImageListPager.php b/includes/specials/pagers/ImageListPager.php index 889ec1af7c..ab3237ad83 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 !== '' ) {