X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2Fpagers%2FImageListPager.php;h=bb4f0b3432d35338c72fecd75e3d04937fc97e68;hp=3225256fd9faeb6ddc31494d32031bc87d37aafa;hb=141cb4865421b6063bf4dc0994867d1d2a3d87f7;hpb=3fedcc76716b2fd15e8b992d5c72b848d891b5f7 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 !== '' ) {