lost config in index.php made all traffic go to master
authorEvan Prodromou <evan@status.net>
Thu, 28 Jan 2010 21:52:42 +0000 (16:52 -0500)
committerEvan Prodromou <evan@status.net>
Thu, 28 Jan 2010 21:52:42 +0000 (16:52 -0500)
index.php

index 5aa40440aafbf2f880fc10309d886f366917ea13..605b380bf89412a8cebb3c53988f4c6d5b079d3a 100644 (file)
--- 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