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
This commit is contained in:
parent
9a741ee4a0
commit
d95ee06f60
1 changed files with 1 additions and 1 deletions
|
|
@ -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'] ) ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue