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:
30aa9cf
)
Use the same connection for updates everywhere. Hopefully, this ugly code will not...
author
Max Semenik
<maxsem@users.mediawiki.org>
Tue, 17 Aug 2010 14:17:13 +0000
(14:17 +0000)
committer
Max Semenik
<maxsem@users.mediawiki.org>
Tue, 17 Aug 2010 14:17:13 +0000
(14:17 +0000)
maintenance/updaters.inc
patch
|
blob
|
history
diff --git
a/maintenance/updaters.inc
b/maintenance/updaters.inc
index
42d46db
..
e941f65
100644
(file)
--- a/
maintenance/updaters.inc
+++ b/
maintenance/updaters.inc
@@
-33,8
+33,8
@@
$wgExtModifiedFields = array(); // table, index, dir
# Obviously, only use this for updates that occur after the updatelog table was
# created!
function update_row_exists( $key ) {
-
$dbr = wfGetDB( DB_SLAVE )
;
- $row = $
dbr
->selectRow(
+
global $wgDatabase
;
+ $row = $
wgDatabase
->selectRow(
'updatelog',
'1',
array( 'ul_key' => $key ),