dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Button group adjustments"
[lhc/web/wiklou.git]
/
includes
/
UserRightsProxy.php
diff --git
a/includes/UserRightsProxy.php
b/includes/UserRightsProxy.php
index
56bb73f
..
a8a22be
100644
(file)
--- a/
includes/UserRightsProxy.php
+++ b/
includes/UserRightsProxy.php
@@
-138,7
+138,7
@@
class UserRightsProxy {
*/
public static function getDB( $database, $ignoreInvalidDB = false ) {
global $wgDBname;
*/
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 );
if ( $database == $wgDBname ) {
// Hmm... this shouldn't happen though. :)
return wfGetDB( DB_MASTER );