Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/site/app/app_controller.php
diff options
context:
space:
mode:
Diffstat (limited to 'site/app/app_controller.php')
-rw-r--r--site/app/app_controller.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/site/app/app_controller.php b/site/app/app_controller.php
index e953cef..8eb6d90 100644
--- a/site/app/app_controller.php
+++ b/site/app/app_controller.php
@@ -65,6 +65,13 @@ class AppController extends Controller
function __construct() {
parent::__construct();
+ if (DEV) {
+ // Not using && to help with APC caching, but I don't know
+ // if it actually helps. voodoo++
+ if (array_key_exists('X-Amo-Test', getallheaders())){
+ DATABASE_CONFIG::useTestConfig();
+ }
+ }
$this->setSecurityLevel($this->securityLevel);
}