]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
accidentally used as a global in index.php
authorEvan Prodromou <evan@controlyourself.ca>
Fri, 20 Feb 2009 21:46:26 +0000 (16:46 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 20 Feb 2009 21:46:26 +0000 (16:46 -0500)
index.php

index a8890e9a3b673e9866fd1014c89884d055f6b4ec..914ba5bde1453e2c21122a0766e8fc95fd8ac6cb 100644 (file)
--- a/index.php
+++ b/index.php
@@ -116,8 +116,8 @@ function main()
 
         // XXX: find somewhere for this little block to live
 
-        if ($config['db']['mirror'] && $action_obj->isReadOnly()) {
-            if (is_array($config['db']['mirror'])) {
+        if (common_config('db', 'mirror') && $action_obj->isReadOnly()) {
+            if (is_array(common_config('db', 'mirror'))) {
                 // "load balancing", ha ha
                 $k = array_rand($config['db']['mirror']);