diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-08 08:27:17 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-08 08:27:17 +0000 |
commit | 10945012518821d2f0b85949525fe95eb38b77ef (patch) | |
tree | cc332789697dbcb6e9245cb7449656a98cf888ff | |
parent | fb93722e9e49900a4bf69f390e7e796eef6c7240 (diff) |
Only add the unit_test and gallery_unit_test modules if we're in TEST_MODE
-rw-r--r-- | core/config/config.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/core/config/config.php b/core/config/config.php index db016ffd..9d08aef3 100644 --- a/core/config/config.php +++ b/core/config/config.php @@ -116,12 +116,13 @@ $config['extension_prefix'] = 'MY_'; * or relative to the docroot. Modules can include any resource that can exist * in your application directory, configuration files, controllers, views, etc. */ -$config['modules'] = array -( - MODPATH . 'gallery_unit_test', - MODPATH . 'unit_test', +$config['modules'] = array( MODPATH . 'forge', - THEMEPATH . 'default', ); +if (defined('TEST_MODE')) { + array_splice($config['modules'], 0, 0, + array(MODPATH . 'gallery_unit_test', + MODPATH . 'unit_test')); +} |