Index: trunk/extensions/CentralAuth/CentralAuthUser.php |
— | — | @@ -75,7 +75,7 @@ |
76 | 76 | */ |
77 | 77 | public static function getCentralDB() { |
78 | 78 | global $wgCentralAuthDatabase, $wgCentralAuthReadOnly; |
79 | | - if ( !$wgCentralAuthReadOnly ) { |
| 79 | + if ( $wgCentralAuthReadOnly ) { |
80 | 80 | throw new CentralAuthReadOnlyError(); |
81 | 81 | } |
82 | 82 | return wfGetLB( $wgCentralAuthDatabase )->getConnection( DB_MASTER, array(), |