X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryLangLinks.php;h=b0880bb5ef8086ec267efe356032f5d68a3ec07c;hb=bc02b15e0ca0536e09442aa55c55553f049e2dde;hp=4dd34957a9d6bc301855b8a02a5a891ee6541086;hpb=b7ff4b8b88c8106d6da06e823f6d30ed5da7f527;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryLangLinks.php b/includes/api/ApiQueryLangLinks.php index 4dd34957a9..b0880bb5ef 100644 --- a/includes/api/ApiQueryLangLinks.php +++ b/includes/api/ApiQueryLangLinks.php @@ -106,7 +106,7 @@ class ApiQueryLangLinks extends ApiQueryBase { if ( $params['url'] ) { $title = Title::newFromText( "{$row->ll_lang}:{$row->ll_title}" ); if ( $title ) { - $entry['url'] = $title->getFullURL(); + $entry['url'] = wfExpandUrl( $title->getFullURL(), PROTO_CURRENT ); } } ApiResult::setContent( $entry, $row->ll_title ); @@ -159,13 +159,17 @@ class ApiQueryLangLinks extends ApiQueryBase { ) ); } - protected function getExamples() { + public function getExamples() { return array( 'Get interlanguage links from the [[Main Page]]:', ' api.php?action=query&prop=langlinks&titles=Main%20Page&redirects=', ); } + public function getHelpUrls() { + return 'http://www.mediawiki.org/wiki/API:Properties#langlinks_.2F_ll'; + } + public function getVersion() { return __CLASS__ . ': $Id$'; }