r106795 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106794‎ | r106795 | r106796 >
Date:13:20, 20 December 2011
Author:reedy
Status:ok
Tags:
Comment:
Fix boolean fail from r106784
Modified paths:
  • /trunk/extensions/CentralAuth/CentralAuthUser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralAuth/CentralAuthUser.php
@@ -75,7 +75,7 @@
7676 */
7777 public static function getCentralDB() {
7878 global $wgCentralAuthDatabase, $wgCentralAuthReadOnly;
79 - if ( !$wgCentralAuthReadOnly ) {
 79+ if ( $wgCentralAuthReadOnly ) {
8080 throw new CentralAuthReadOnlyError();
8181 }
8282 return wfGetLB( $wgCentralAuthDatabase )->getConnection( DB_MASTER, array(),

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r106784* (bug 31170) centralauth needs a read-only db flag that allows queries to go...reedy12:24, 20 December 2011

Status & tagging log