summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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