diff options
author | David Farning <dfarning@gmail.com> | 2009-03-21 05:54:57 (GMT) |
---|---|---|
committer | David Farning <dfarning@gmail.com> | 2009-03-21 05:54:57 (GMT) |
commit | b6607b36b4fe5be82297abaea88e120de7c1ce44 (patch) | |
tree | a44f7ca03ac5524024c98343c7ef517038d4f870 /site/app/app_controller.php | |
parent | 1fb3c4ae563e9ede7cdc6cdb6b4292773703c14d (diff) | |
parent | 32c281e71ab055ed2ad44b44e5863cf9779a621d (diff) |
merge with snvdevel
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); } |