diff options
author | Evan Prodromou <evan@status.net> | 2010-01-28 16:52:42 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-01-28 16:52:42 -0500 |
commit | 63a0e84a8b94d84b106431b648ec76e2537ab9c6 (patch) | |
tree | 73a91166aa5a5b0f4fea63a049c4cc7ac9007f6a | |
parent | a33194effb350a03dcdf1c0683fb15d575d245e5 (diff) |
lost config in index.php made all traffic go to master
-rw-r--r-- | index.php | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |