X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryLangLinks.php;h=da05f2732b7996ed7d4b3a1137236e8d7186da4c;hb=71a8bf7b82621a974ab2bdf8ce517e8bd0878d44;hp=53cfba1ec87f8625c17e72ebdb7bdbbe0c97e041;hpb=01da3da43d18b123fe3679a6af21f046a78180d5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryLangLinks.php b/includes/api/ApiQueryLangLinks.php index 53cfba1ec8..da05f2732b 100644 --- a/includes/api/ApiQueryLangLinks.php +++ b/includes/api/ApiQueryLangLinks.php @@ -50,6 +50,7 @@ class ApiQueryLangLinks extends ApiQueryBase { // Handle deprecated param $this->requireMaxOneParameter( $params, 'url', 'prop' ); if ( $params['url'] ) { + $this->logFeatureUsage( 'prop=langlinks&llurl' ); $prop = array( 'url' => 1 ); } @@ -191,42 +192,10 @@ class ApiQueryLangLinks extends ApiQueryBase { ); } - public function getResultProperties() { - return array( - '' => array( - 'lang' => 'string', - 'url' => array( - ApiBase::PROP_TYPE => 'string', - ApiBase::PROP_NULLABLE => true - ), - 'langname' => array( - ApiBase::PROP_TYPE => 'string', - ApiBase::PROP_NULLABLE => true - ), - 'autonym' => array( - ApiBase::PROP_TYPE => 'string', - ApiBase::PROP_NULLABLE => true - ), - '*' => 'string' - ) - ); - } - public function getDescription() { return 'Returns all interlanguage links from the given page(s).'; } - public function getPossibleErrors() { - return array_merge( parent::getPossibleErrors(), - $this->getRequireMaxOneParameterErrorMessages( - array( 'url', 'prop' ) - ), - array( - array( 'missingparam', 'lang' ), - ) - ); - } - public function getExamples() { return array( 'api.php?action=query&prop=langlinks&titles=Main%20Page&redirects='