Index: trunk/phase3/includes/api/ApiQueryBacklinks.php |
— | — | @@ -118,7 +118,7 @@ |
119 | 119 | $this->addWhere( "{$this->bl_from}>={$this->contID}" ); |
120 | 120 | if ( $this->params['filterredir'] == 'redirects' ) |
121 | 121 | $this->addWhereFld( 'page_is_redirect', 1 ); |
122 | | - if ( $this->params['filterredir'] == 'nonredirects' ) |
| 122 | + else if ( $this->params['filterredir'] == 'nonredirects' ) |
123 | 123 | $this->addWhereFld( 'page_is_redirect', 0 ); |
124 | 124 | $this->addOption( 'LIMIT', $this->params['limit'] + 1 ); |
125 | 125 | $this->addOption( 'ORDER BY', $this->bl_from ); |
— | — | @@ -168,7 +168,7 @@ |
169 | 169 | } |
170 | 170 | if ( $this->params['filterredir'] == 'redirects' ) |
171 | 171 | $this->addWhereFld( 'page_is_redirect', 1 ); |
172 | | - if ( $this->params['filterredir'] == 'nonredirects' ) |
| 172 | + else if ( $this->params['filterredir'] == 'nonredirects' ) |
173 | 173 | $this->addWhereFld( 'page_is_redirect', 0 ); |
174 | 174 | $this->addOption( 'LIMIT', $this->params['limit'] + 1 ); |
175 | 175 | $this->addOption( 'ORDER BY', $this->bl_sort ); |