Remove setting of $wgReadOnly in LBFactoryMulti
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 5 Oct 2015 05:16:38 +0000 (22:16 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 5 Oct 2015 05:16:38 +0000 (22:16 -0700)
wfReadOnly() already pulls in this information

Change-Id: I7c4693f0e69decefcc0cf52168fa2b71152eb99b

includes/db/loadbalancer/LBFactoryMulti.php

index f0c374f..6397bca 100644 (file)
@@ -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];
-               }
        }
 
        /**