From: Max Semenik Date: Tue, 17 Aug 2010 14:17:13 +0000 (+0000) Subject: Use the same connection for updates everywhere. Hopefully, this ugly code will not... X-Git-Tag: 1.31.0-rc.0~35461 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=c6f405f9bf39f5c0d1cd3842d32de708efae2890;p=lhc%2Fweb%2Fwiklou.git Use the same connection for updates everywhere. Hopefully, this ugly code will not survive for long anyway --- diff --git a/maintenance/updaters.inc b/maintenance/updaters.inc index 42d46db833..e941f65792 100644 --- 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 ),