From: Sam Reed Date: Sat, 23 Jan 2010 22:58:24 +0000 (+0000) Subject: Properly fix r61436/r61442 X-Git-Tag: 1.31.0-rc.0~38124 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=d10a0281d93eef123d2bc8ba6c5c73e47d178967;p=lhc%2Fweb%2Fwiklou.git Properly fix r61436/r61442 --- diff --git a/includes/api/ApiQueryAllpages.php b/includes/api/ApiQueryAllpages.php index def1679afd..7e344bc0e1 100644 --- a/includes/api/ApiQueryAllpages.php +++ b/includes/api/ApiQueryAllpages.php @@ -58,9 +58,9 @@ class ApiQueryAllpages extends ApiQueryGeneratorBase { // Page filters $this->addTables( 'page' ); - if ( $this->params['filterredir'] === 'redirects' ) + if ( params['filterredir'] == 'redirects' ) $this->addWhereFld( 'page_is_redirect', 1 ); - else if ( $this->params['filterredir'] === 'nonredirects' ) + else if ( params['filterredir'] == 'nonredirects' ) $this->addWhereFld( 'page_is_redirect', 0 ); $this->addWhereFld( 'page_namespace', $params['namespace'] );