From 5ec1e47475155d1b38cbb75748ace325761ce8ed Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 4 Oct 2015 22:16:38 -0700 Subject: [PATCH] Remove setting of $wgReadOnly in LBFactoryMulti wfReadOnly() already pulls in this information Change-Id: I7c4693f0e69decefcc0cf52168fa2b71152eb99b --- includes/db/loadbalancer/LBFactoryMulti.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/includes/db/loadbalancer/LBFactoryMulti.php b/includes/db/loadbalancer/LBFactoryMulti.php index f0c374fbee..6397bcaaf0 100644 --- a/includes/db/loadbalancer/LBFactoryMulti.php +++ b/includes/db/loadbalancer/LBFactoryMulti.php @@ -178,13 +178,6 @@ class LBFactoryMulti extends LBFactory { $this->$key = $conf[$key]; } } - - // Check for read-only mode - $section = $this->getSectionForWiki(); - if ( !empty( $this->readOnlyBySection[$section] ) ) { - global $wgReadOnly; - $wgReadOnly = $this->readOnlyBySection[$section]; - } } /** -- 2.20.1