X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FUserRightsProxy.php;h=a8a22be7334acffc819a27e3d5fa13e7bbb94556;hb=3bd86e15d4a19cc5a54d707c93bec4a8e4223368;hp=56bb73f8fcb0691394e2f7c9df55aa5ae9764a6e;hpb=5d3dbc64aada672802b5316f293b36095555d1c7;p=lhc%2Fweb%2Fwiklou.git 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 );