dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c2e319
)
Actually use $ignoreInvalidDB in UserRightProxy::getDB()
author
Reedy
<reedy@wikimedia.org>
Fri, 19 Jul 2013 02:21:51 +0000
(
03:21
+0100)
committer
Reedy
<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
patch
|
blob
|
history
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;
- if ( self::validDatabase( $database ) ) {
+ if (
$ignoreInvalidDB ||
self::validDatabase( $database ) ) {
if ( $database == $wgDBname ) {
// Hmm... this shouldn't happen though. :)
return wfGetDB( DB_MASTER );