X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryAllImages.php;h=b18171055804fc6142a89d97f0043e575486b6a3;hb=f97d13a10c1b7dac7c4463c3ccc75e21a731c7a2;hp=acd11fd28ca5b0a1cd55c8bc762e9d86e6dc3907;hpb=8f242b26e7f14aea198cf72f85c42f767bc095af;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryAllImages.php b/includes/api/ApiQueryAllImages.php index acd11fd28c..b181710558 100644 --- a/includes/api/ApiQueryAllImages.php +++ b/includes/api/ApiQueryAllImages.php @@ -205,7 +205,7 @@ class ApiQueryAllImages extends ApiQueryGeneratorBase { $this->addJoinConds( [ 'user_groups' => [ 'LEFT JOIN', [ - 'ug_group' => User::getGroupsWithPermission( 'bot' ), + 'ug_group' => $this->getPermissionManager()->getGroupsWithPermission( 'bot' ), 'ug_user = ' . $actorQuery['fields']['img_user'], 'ug_expiry IS NULL OR ug_expiry >= ' . $db->addQuotes( $db->timestamp() ) ] @@ -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',