r87179 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87178‎ | r87179 | r87180 >
Date:00:17, 1 May 2011
Author:reedy
Status:ok
Tags:
Comment:
$db is already defined, don't use $this->getDB() again
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryWatchlist.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryWatchlist.php
@@ -176,7 +176,7 @@
177177 $this->addWhereFld( 'rc_user_text', $params['user'] );
178178 }
179179 if ( !is_null( $params['excludeuser'] ) ) {
180 - $this->addWhere( 'rc_user_text != ' . $this->getDB()->addQuotes( $params['excludeuser'] ) );
 180+ $this->addWhere( 'rc_user_text != ' . $db->addQuotes( $params['excludeuser'] ) );
181181 }
182182
183183 // This is an index optimization for mysql, as done in the Special:Watchlist page

Status & tagging log