Merge "libxml_disable_entity_loader() just in case..."
[lhc/web/wiklou.git] / 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 );