X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryLangLinks.php;h=8f8a17dedef129218a3e88d45e8adcb75f3bf07f;hb=c656c3d7d4c34dfb8832c632df2daa9867bd90a2;hp=2d0334755e4f33513d6155363f3a16216b063fa9;hpb=31d239f9d9e2516fc725d9b743ece0dfe72c23a2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryLangLinks.php b/includes/api/ApiQueryLangLinks.php index 2d0334755e..8f8a17dede 100644 --- a/includes/api/ApiQueryLangLinks.php +++ b/includes/api/ApiQueryLangLinks.php @@ -124,7 +124,7 @@ class ApiQueryLangLinks extends ApiQueryBase { if ( isset( $prop['autonym'] ) ) { $entry['autonym'] = Language::fetchLanguageName( $row->ll_lang ); } - ApiResult::setContent( $entry, $row->ll_title ); + ApiResult::setContentValue( $entry, 'title', $row->ll_title ); $fit = $this->addPageSubItem( $row->ll_from, $entry ); if ( !$fit ) { $this->setContinueEnumParameter( 'continue', "{$row->ll_from}|{$row->ll_lang}" ); @@ -183,6 +183,6 @@ class ApiQueryLangLinks extends ApiQueryBase { } public function getHelpUrls() { - return 'https://www.mediawiki.org/wiki/API:Properties#langlinks_.2F_ll'; + return 'https://www.mediawiki.org/wiki/API:Langlinks'; } }