From 064b2fe1f0735c3f5f6b692fd1a857ea3b0b49fd Mon Sep 17 00:00:00 2001 From: Reedy Date: Fri, 19 Jul 2013 03:21:51 +0100 Subject: [PATCH] Actually use $ignoreInvalidDB in UserRightProxy::getDB() Parameter is exposed via other public methods Change-Id: Ie8edf7005596b2f3c04476e3c50781ead31b5fc2 --- includes/UserRightsProxy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/UserRightsProxy.php b/includes/UserRightsProxy.php index 56bb73f8fc..a8a22be733 100644 --- a/includes/UserRightsProxy.php +++ b/includes/UserRightsProxy.php @@ -138,7 +138,7 @@ class UserRightsProxy { */ public static function getDB( $database, $ignoreInvalidDB = false ) { global $wgDBname; - if ( self::validDatabase( $database ) ) { + if ( $ignoreInvalidDB || self::validDatabase( $database ) ) { if ( $database == $wgDBname ) { // Hmm... this shouldn't happen though. :) return wfGetDB( DB_MASTER ); -- 2.20.1