dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a741ee
)
Fix database access in ApiSetNotificationTimestamp
author
Brad Jorsch
<bjorsch@wikimedia.org>
Sat, 22 Dec 2012 19:54:03 +0000
(14:54 -0500)
committer
Brad Jorsch
<bjorsch@wikimedia.org>
Sat, 22 Dec 2012 19:54:03 +0000
(14:54 -0500)
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
patch
|
blob
|
history
diff --git
a/includes/api/ApiSetNotificationTimestamp.php
b/includes/api/ApiSetNotificationTimestamp.php
index
098b1a6
..
c122f59
100644
(file)
--- 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'] ) ) {