X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryImages.php;h=0086c58a9301bf2169bed304cff9a7b93ea78d89;hb=108c05007238ceabdfa72a3ff350fa80ef4ddc14;hp=e04d8c888f1fdc6251130bdb8496aff772c9021c;hpb=e3bd13db0c285f312e31bb1b7271af4628cca80c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryImages.php b/includes/api/ApiQueryImages.php index e04d8c888f..0086c58a93 100644 --- a/includes/api/ApiQueryImages.php +++ b/includes/api/ApiQueryImages.php @@ -90,7 +90,7 @@ class ApiQueryImages extends ApiQueryGeneratorBase { foreach ( $params['images'] as $img ) { $title = Title::newFromText( $img ); if ( !$title || $title->getNamespace() != NS_FILE ) { - $this->setWarning( "\"$img\" is not a file" ); + $this->addWarning( [ 'apiwarn-notfile', wfEscapeWikiText( $img ) ] ); } else { $images[] = $title->getDBkey(); } @@ -172,6 +172,6 @@ class ApiQueryImages extends ApiQueryGeneratorBase { } public function getHelpUrls() { - return 'https://www.mediawiki.org/wiki/API:Images'; + return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:Images'; } }