From: Sam Reed Date: Sun, 1 May 2011 00:17:39 +0000 (+0000) Subject: $db is already defined, don't use $this->getDB() again X-Git-Tag: 1.31.0-rc.0~30484 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=c3b15001614f1417be8f4dcf0cd31499ddd29427;p=lhc%2Fweb%2Fwiklou.git $db is already defined, don't use $this->getDB() again --- diff --git a/includes/api/ApiQueryWatchlist.php b/includes/api/ApiQueryWatchlist.php index d7bc60bbdb..fe0c180926 100644 --- a/includes/api/ApiQueryWatchlist.php +++ b/includes/api/ApiQueryWatchlist.php @@ -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