From d95ee06f600f8b79575840c4231bef07216c6e17 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Sat, 22 Dec 2012 14:54:03 -0500 Subject: [PATCH] Fix database access in ApiSetNotificationTimestamp ApiBase::getDB() doesn't take a parameter indicating whether DB_SLAVE or DB_MASTER is wanted. Use wfGetDB() instead. Change-Id: Ic2057a1561ad31a0638eea6bae887982a4fe8d80 --- includes/api/ApiSetNotificationTimestamp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiSetNotificationTimestamp.php b/includes/api/ApiSetNotificationTimestamp.php index 098b1a6601..c122f59357 100644 --- a/includes/api/ApiSetNotificationTimestamp.php +++ b/includes/api/ApiSetNotificationTimestamp.php @@ -49,7 +49,7 @@ class ApiSetNotificationTimestamp extends ApiBase { $args = array_merge( array( $params, 'entirewatchlist' ), array_keys( $pageSet->getAllowedParams() ) ); call_user_func_array( array( $this, 'requireOnlyOneParameter' ), $args ); - $dbw = $this->getDB( DB_MASTER ); + $dbw = wfGetDB( DB_MASTER, 'api' ); $timestamp = null; if ( isset( $params['timestamp'] ) ) { -- 2.20.1