X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiQueryAllImages.php;h=40cd1491818802e9d484db7b833bb760127e411b;hp=c7a0cbc3c2a421bd8a981021f098f83a914719ae;hb=871d947ca43c5876d4be2bf02ebb86a9c59ad98d;hpb=5f4cf303e22c522a63d08cac61b38e74a8dfd0f7 diff --git a/includes/api/ApiQueryAllImages.php b/includes/api/ApiQueryAllImages.php index c7a0cbc3c2..40cd149181 100644 --- a/includes/api/ApiQueryAllImages.php +++ b/includes/api/ApiQueryAllImages.php @@ -217,11 +217,11 @@ class ApiQueryAllImages extends ApiQueryGeneratorBase { // Filters not depending on sort if ( isset( $params['minsize'] ) ) { - $this->addWhere( 'img_size>=' . intval( $params['minsize'] ) ); + $this->addWhere( 'img_size>=' . (int)$params['minsize'] ); } if ( isset( $params['maxsize'] ) ) { - $this->addWhere( 'img_size<=' . intval( $params['maxsize'] ) ); + $this->addWhere( 'img_size<=' . (int)$params['maxsize'] ); } $sha1 = false; @@ -406,7 +406,7 @@ class ApiQueryAllImages extends ApiQueryGeneratorBase { protected function getExamplesMessages() { return [ 'action=query&list=allimages&aifrom=B' - => 'apihelp-query+allimages-example-B', + => 'apihelp-query+allimages-example-b', 'action=query&list=allimages&aiprop=user|timestamp|url&' . 'aisort=timestamp&aidir=older' => 'apihelp-query+allimages-example-recent',