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 );
) );
}
- 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$';
}