X-Git-Url: https://git.heureux-cyclage.org/index.php?a=blobdiff_plain;f=includes%2Fspecials%2Fpagers%2FNewFilesPager.php;h=e764e8bc64212a0bf24cc9dbf4b0e2b92c349b7b;hb=218e8311d578edfa04493cfde54f1850cd4cd6e3;hp=4815189187be938f4fe5ebefa4e480bcce9a0a5e;hpb=f4ec592330517bc80e2ee351d0385e752f16e3fb;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/pagers/NewFilesPager.php b/includes/specials/pagers/NewFilesPager.php index 4815189187..e764e8bc64 100644 --- a/includes/specials/pagers/NewFilesPager.php +++ b/includes/specials/pagers/NewFilesPager.php @@ -75,7 +75,7 @@ class NewFilesPager extends RangeChronologicalPager { if ( $opts->getValue( 'newbies' ) ) { // newbie = most recent 1% of users $dbr = wfGetDB( DB_REPLICA ); - $max = $dbr->selectField( 'user', 'max(user_id)', false, __METHOD__ ); + $max = $dbr->selectField( 'user', 'max(user_id)', '', __METHOD__ ); $conds[] = $imgQuery['fields']['img_user'] . ' >' . (int)( $max - $max / 100 ); // there's no point in looking for new user activity in a far past;