From c6f405f9bf39f5c0d1cd3842d32de708efae2890 Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Tue, 17 Aug 2010 14:17:13 +0000 Subject: [PATCH] Use the same connection for updates everywhere. Hopefully, this ugly code will not survive for long anyway --- maintenance/updaters.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ), -- 2.20.1