From c3b15001614f1417be8f4dcf0cd31499ddd29427 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 1 May 2011 00:17:39 +0000 Subject: [PATCH] $db is already defined, don't use $this->getDB() again --- includes/api/ApiQueryWatchlist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1