Actually use $ignoreInvalidDB in UserRightProxy::getDB()
authorReedy <reedy@wikimedia.org>
Fri, 19 Jul 2013 02:21:51 +0000 (03:21 +0100)
committerReedy <reedy@wikimedia.org>
Sat, 10 Aug 2013 14:49:21 +0000 (14:49 +0000)
Parameter is exposed via other public methods

Change-Id: Ie8edf7005596b2f3c04476e3c50781ead31b5fc2

includes/UserRightsProxy.php

index 56bb73f..a8a22be 100644 (file)
@@ -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 );