From 755581b81a9392fe2570865e16ceb8e9a384fa37 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Fri, 10 Sep 2010 11:10:33 +0000 Subject: [PATCH] Removed $wgDatabase from dbsource() --- maintenance/install-utils.inc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/maintenance/install-utils.inc b/maintenance/install-utils.inc index f865aca326..546dad42c9 100644 --- a/maintenance/install-utils.inc +++ b/maintenance/install-utils.inc @@ -180,14 +180,7 @@ function readlineEmulation( $prompt ) { function dbsource( $fname, $db = false ) { wfDeprecated( __METHOD__ ); if ( !$db ) { - // Try $wgDatabase, which is used in the install and update scripts - global $wgDatabase; - if ( isset( $wgDatabase ) ) { - $db = $wgDatabase; - } else { - // No? Well, we must be outside of those scripts, so use the standard method - $db = wfGetDB( DB_MASTER ); - } + $db = wfGetDB( DB_MASTER ); } $error = $db->sourceFile( $fname ); if ( $error !== true ) { -- 2.20.1