summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-28 16:52:42 -0500
committerEvan Prodromou <evan@status.net>2010-01-28 16:52:42 -0500
commit63a0e84a8b94d84b106431b648ec76e2537ab9c6 (patch)
tree73a91166aa5a5b0f4fea63a049c4cc7ac9007f6a
parenta33194effb350a03dcdf1c0683fb15d575d245e5 (diff)
lost config in index.php made all traffic go to master
-rw-r--r--index.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.php b/index.php
index 5aa40440a..605b380bf 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