Reedy has uploaded a new change for review.
https://gerrit.wikimedia.org/r/74576
Change subject: Actually use $ignoreInvalidDB in UserRightProxy::getDB()
......................................................................
Actually use $ignoreInvalidDB in UserRightProxy::getDB()
Parameter is exposed via other public methods
Change-Id: Ie8edf7005596b2f3c04476e3c50781ead31b5fc2
---
M includes/UserRightsProxy.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/76/74576/1
diff --git a/includes/UserRightsProxy.php b/includes/UserRightsProxy.php
index 56bb73f..a8a22be 100644
--- a/includes/UserRightsProxy.php
+++ b/includes/UserRightsProxy.php
@@ -138,7 +138,7 @@
*/
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 );
--
To view, visit https://gerrit.wikimedia.org/r/74576
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie8edf7005596b2f3c04476e3c50781ead31b5fc2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits