X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryLangBacklinks.php;h=5bd451b6c80f009c1e565f4b7f43f9086a3780ec;hb=97e9c1e0b4b366c0b8b44b254acee12749020ba4;hp=3920407b9186f9a0a64990ecbaf270dda2ceb4cf;hpb=67e23ec357d2265bc487bdd4b63e30fcaf5871c7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryLangBacklinks.php b/includes/api/ApiQueryLangBacklinks.php index 3920407b91..5bd451b6c8 100644 --- a/includes/api/ApiQueryLangBacklinks.php +++ b/includes/api/ApiQueryLangBacklinks.php @@ -56,10 +56,7 @@ class ApiQueryLangBacklinks extends ApiQueryGeneratorBase { if ( !is_null( $params['continue'] ) ) { $cont = explode( '|', $params['continue'] ); - if ( count( $cont ) != 3 ) { - $this->dieUsage( 'Invalid continue param. You should pass the ' . - 'original value returned by the previous query', '_badcontinue' ); - } + $this->dieContinueUsageIf( count( $cont ) != 3 ); $db = $this->getDB(); $op = $params['dir'] == 'descending' ? '<' : '>'; @@ -198,7 +195,7 @@ class ApiQueryLangBacklinks extends ApiQueryGeneratorBase { 'prop' => array( 'Which properties to get', ' lllang - Adds the language code of the language link', - ' lltitle - Adds the title of the language ink', + ' lltitle - Adds the title of the language link', ), 'limit' => 'How many total pages to return', 'dir' => 'The direction in which to list', @@ -226,14 +223,14 @@ class ApiQueryLangBacklinks extends ApiQueryGeneratorBase { return array( 'Find all pages that link to the given language link.', 'Can be used to find all links with a language code, or', 'all links to a title (with a given language).', - 'Using neither parameter is effectively "All Language Links"', + 'Using neither parameter is effectively "All Language Links".', + 'Note that this may not consider language links added by extensions.', ); } public function getPossibleErrors() { return array_merge( parent::getPossibleErrors(), array( array( 'missingparam', 'lang' ), - array( 'code' => '_badcontinue', 'info' => 'Invalid continue param. You should pass the original value returned by the previous query' ), ) ); } @@ -244,7 +241,7 @@ class ApiQueryLangBacklinks extends ApiQueryGeneratorBase { ); } - public function getVersion() { - return __CLASS__ . ': $Id$'; + public function getHelpUrls() { + return 'https://www.mediawiki.org/wiki/API:Langbacklinks'; } }