API: Document the behavior added in r61447
authorRoan Kattouw <catrope@users.mediawiki.org>
Sun, 24 Jan 2010 10:10:00 +0000 (10:10 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sun, 24 Jan 2010 10:10:00 +0000 (10:10 +0000)
includes/api/ApiQueryBacklinks.php

index 88f417d..438f8d7 100644 (file)
@@ -427,15 +427,16 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase {
                        'title' => 'Title to search.',
                        'continue' => 'When more results are available, use this to continue.',
                        'namespace' => 'The namespace to enumerate.',
-                       'filterredir' => 'How to filter for redirects'
                );
                if ( $this->getModuleName() != 'embeddedin' )
                        return array_merge( $retval, array(
                                'redirect' => 'If linking page is a redirect, find all pages that link to that redirect as well. Maximum limit is halved.',
+                               'filterredir' => "How to filter for redirects. If set to nonredirects when {$this->bl_code}redirect is enabled, this is only applied to the second level",
                                'limit' => "How many total pages to return. If {$this->bl_code}redirect is enabled, limit applies to each level separately (which means you may get up to 2 * limit results)."
                        ) );
                return array_merge( $retval, array(
-                       'limit' => "How many total pages to return."
+                       'filterredir' => 'How to filter for redirects',
+                       'limit' => 'How many total pages to return.'
                ) );
        }