more accurate documentation for addValue() method
[lhc/web/wiklou.git] / includes / api / ApiQueryLangLinks.php
index 4dd3495..b0880bb 100644 (file)
@@ -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$';
        }