Index: trunk/phase3/includes/api/ApiQueryAllpages.php |
— | — | @@ -58,9 +58,9 @@ |
59 | 59 | // Page filters |
60 | 60 | $this->addTables( 'page' ); |
61 | 61 | |
62 | | - if ( $this->params['filterredir'] === 'redirects' ) |
| 62 | + if ( params['filterredir'] == 'redirects' ) |
63 | 63 | $this->addWhereFld( 'page_is_redirect', 1 ); |
64 | | - else if ( $this->params['filterredir'] === 'nonredirects' ) |
| 64 | + else if ( params['filterredir'] == 'nonredirects' ) |
65 | 65 | $this->addWhereFld( 'page_is_redirect', 0 ); |
66 | 66 | |
67 | 67 | $this->addWhereFld( 'page_namespace', $params['namespace'] ); |