From: Aaron Schulz Date: Sat, 10 Oct 2015 00:25:54 +0000 (-0700) Subject: Fix more LBFactory __construct() IDEA errors X-Git-Tag: 1.31.0-rc.0~9454 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/categories/modifier.php?a=commitdiff_plain;h=eae5f07428c1247c4670c6cc8eaaf2515bc22998;p=lhc%2Fweb%2Fwiklou.git Fix more LBFactory __construct() IDEA errors Change-Id: Iec0d108d6ad405f77710e4ce111d0adefea3832b --- diff --git a/includes/db/loadbalancer/LBFactoryFake.php b/includes/db/loadbalancer/LBFactoryFake.php index d8becf50a7..41066e0269 100644 --- a/includes/db/loadbalancer/LBFactoryFake.php +++ b/includes/db/loadbalancer/LBFactoryFake.php @@ -28,9 +28,6 @@ * LBFactory::enableBackend() to return to normal behavior */ class LBFactoryFake extends LBFactory { - public function __construct( array $conf ) { - } - public function newMainLB( $wiki = false ) { throw new DBAccessError; } diff --git a/includes/db/loadbalancer/LBFactorySingle.php b/includes/db/loadbalancer/LBFactorySingle.php index a41dadfa60..32bce6c8b1 100644 --- a/includes/db/loadbalancer/LBFactorySingle.php +++ b/includes/db/loadbalancer/LBFactorySingle.php @@ -33,6 +33,8 @@ class LBFactorySingle extends LBFactory { * - connection: The DatabaseBase connection object */ public function __construct( array $conf ) { + parent::__construct( $conf ); + $this->lb = new LoadBalancerSingle( $conf ); }