diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-16 04:31:33 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-16 04:31:33 +0000 |
commit | 52a7607336be794e9892dd87a53d09ee97ecb392 (patch) | |
tree | 7b43d7059e8c1fc9fb7a3a0e73834560ec93fa27 | |
parent | d9e02a5d0c1a81925df33a9b25501fc90db91451 (diff) |
Define TEST_MODE 0 when we're in production
-rw-r--r-- | index.php | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -53,6 +53,7 @@ if (PHP_SAPI == 'cli') { define('VARPATH', strtr(realpath('test/var') . '/', DIRECTORY_SEPARATOR, '/')); @copy("var/database.php", VARPATH . "database.php"); } else { + define('TEST_MODE', 0); if (file_exists('var')) { define('VARPATH', strtr(realpath('var') . '/', DIRECTORY_SEPARATOR, '/')); } else { |