TEST_MODE always exists now, so check its value, don't rely on its existence to know that we're in test mode.

This commit is contained in:
Bharat Mediratta
2008-12-16 05:13:04 +00:00
parent 83363172b1
commit 8bd7afeb5b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ $config['modules'] = array(
THEMEPATH . 'admin_default'
);
if (defined('TEST_MODE')) {
if (TEST_MODE) {
array_splice($config['modules'], 0, 0,
array(MODPATH . 'gallery_unit_test',
MODPATH . 'unit_test'));
@@ -19,7 +19,7 @@
*/
class Gallery_Unit_Test_Controller extends Controller {
function Index() {
if (!defined('TEST_MODE')) {
if (!TEST_MODE) {
print Kohana::show_404();
}