$db is already defined, don't use $this->getDB() again
authorSam Reed <reedy@users.mediawiki.org>
Sun, 1 May 2011 00:17:39 +0000 (00:17 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 1 May 2011 00:17:39 +0000 (00:17 +0000)
includes/api/ApiQueryWatchlist.php

index d7bc60b..fe0c180 100644 (file)
@@ -176,7 +176,7 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase {
                        $this->addWhereFld( 'rc_user_text', $params['user'] );
                }
                if ( !is_null( $params['excludeuser'] ) ) {
-                       $this->addWhere( 'rc_user_text != ' . $this->getDB()->addQuotes( $params['excludeuser'] ) );
+                       $this->addWhere( 'rc_user_text != ' . $db->addQuotes( $params['excludeuser'] ) );
                }
 
                // This is an index optimization for mysql, as done in the Special:Watchlist page