From 10945012518821d2f0b85949525fe95eb38b77ef Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 8 Dec 2008 08:27:17 +0000 Subject: Only add the unit_test and gallery_unit_test modules if we're in TEST_MODE --- core/config/config.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'core') 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')); +} -- cgit v1.2.3