From: Evan Prodromou Date: Thu, 28 Jan 2010 21:52:42 +0000 (-0500) Subject: lost config in index.php made all traffic go to master X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=63a0e84a8b94d84b106431b648ec76e2537ab9c6;p=quix0rs-gnu-social.git lost config in index.php made all traffic go to master --- diff --git a/index.php b/index.php index 5aa40440aa..605b380bf8 100644 --- a/index.php +++ b/index.php @@ -165,6 +165,8 @@ function setupRW() function checkMirror($action_obj, $args) { + global $config; + if (common_config('db', 'mirror') && $action_obj->isReadOnly($args)) { if (is_array(common_config('db', 'mirror'))) { // "load balancing", ha ha