X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiQueryExtLinksUsage.php;h=fc5d8a042598552bd871bd1f2ecc221264986daa;hp=9b055377ef6b42d001132b07829c67e71d29a6cc;hb=7babd362babcbf7f20adb8e12edb4f4bc1d4249f;hpb=f43fa6f4f0e2cb60b8543daad661b48a3e0653a9 diff --git a/includes/api/ApiQueryExtLinksUsage.php b/includes/api/ApiQueryExtLinksUsage.php index 9b055377ef..fc5d8a0425 100644 --- a/includes/api/ApiQueryExtLinksUsage.php +++ b/includes/api/ApiQueryExtLinksUsage.php @@ -1,9 +1,5 @@ @gmail.com" * * This program is free software; you can redistribute it and/or modify @@ -61,7 +57,7 @@ class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase { $miser_ns = []; if ( $this->getConfig()->get( 'MiserMode' ) ) { - $miser_ns = $params['namespace']; + $miser_ns = $params['namespace'] ?: []; } else { $this->addWhereFld( 'page_namespace', $params['namespace'] ); } @@ -230,6 +226,6 @@ class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase { } public function getHelpUrls() { - return 'https://www.mediawiki.org/wiki/API:Exturlusage'; + return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:Exturlusage'; } }