diff options
author | jbalogh@mozilla.com <jbalogh@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5> | 2009-03-03 18:18:42 (GMT) |
---|---|---|
committer | jbalogh@mozilla.com <jbalogh@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5> | 2009-03-03 18:18:42 (GMT) |
commit | ad94d372437f620427a9228f6ceabef31c315060 (patch) | |
tree | 690c1eaad3274d48a157346be6f35a144ea66695 /site/app/app_controller.php | |
parent | 1b14e1839530d55a2c0edb1dfa01b485ce01e431 (diff) |
bug 476026, making sure we're using the db test config during testing
git-svn-id: http://svn.mozilla.org/addons/trunk@22837 4eb1ac78-321c-0410-a911-ec516a8615a5
Diffstat (limited to 'site/app/app_controller.php')
-rw-r--r-- | site/app/app_controller.php | 7 |
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); } |