If filterredir == 'nonredirects', only filter if !redirect
* (bug 22061) API: add prop=headitems to action=parse
* (bug 22240) API: include time in siteinfo
* (bug 22241) Quick edit is still using the deprecated watch parameter (API: Setting default for watch/unwatch wrongly set)
+* (bug 22245) blfilterredirect=nonredirects in blredirect mode wrongly filtering
=== Languages updated in 1.16 ===
if ( $this->params['filterredir'] == 'redirects' )
$this->addWhereFld( 'page_is_redirect', 1 );
- else if ( $this->params['filterredir'] == 'nonredirects' )
+ 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 );