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