minor followup to r61447, moving commment
authorSam Reed <reedy@users.mediawiki.org>
Sun, 24 Jan 2010 00:14:21 +0000 (00:14 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 24 Jan 2010 00:14:21 +0000 (00:14 +0000)
includes/api/ApiQueryBacklinks.php

index ea3a6df..88f417d 100644 (file)
@@ -122,8 +122,9 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase {
 
                if ( $this->params['filterredir'] == 'redirects' )
                        $this->addWhereFld( 'page_is_redirect', 1 );
-               else if ( $this->params['filterredir'] == 'nonredirects' && !$this->redirect ) //bug 22245 - Check for !redirect, as filtering nonredirects, when getting what links to them is contradictory
-                       $this->addWhereFld( 'page_is_redirect', 0 );
+               else if ( $this->params['filterredir'] == 'nonredirects' && !$this->redirect )
+                       //bug 22245 - Check for !redirect, as filtering nonredirects, when getting what links to them is contradictory
+                       $this->addWhereFld( 'page_is_redirect', 0 ); 
 
                $this->addOption( 'LIMIT', $this->params['limit'] + 1 );
                $this->addOption( 'ORDER BY', $this->bl_from );