Followup r92396
[lhc/web/wiklou.git] / includes / api / ApiQueryLinks.php
index 64f46bc..f7d86cd 100644 (file)
@@ -217,7 +217,7 @@ class ApiQueryLinks extends ApiQueryGeneratorBase {
                );
                if ( $this->getModuleName() == self::LINKS ) {
                        $arr[$this->titlesParam] = 'Only list links to these titles. Useful for checking whether a certain page links to a certain title.';
-               } else if ( $this->getModuleName() == self::TEMPLATES ) {
+               } elseif ( $this->getModuleName() == self::TEMPLATES ) {
                        $arr[$this->titlesParam] = 'Only list these templates. Useful for checking whether a certain page uses a certain template.';
                }
                return $arr;
@@ -238,6 +238,14 @@ class ApiQueryLinks extends ApiQueryGeneratorBase {
                );
        }
 
+       public function getHelpUrls() {
+               if ( $this->prefix === 'pl' ) {
+                       return 'http://www.mediawiki.org/wiki/API:Properties#links_.2F_pl';
+               } else { // tl
+                       return 'http://www.mediawiki.org/wiki/API:Properties#templates_.2F_tl';
+               }
+       }
+
        public function getVersion() {
                return __CLASS__ . ': $Id$';
        }