summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-16 04:31:33 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-16 04:31:33 +0000
commit52a7607336be794e9892dd87a53d09ee97ecb392 (patch)
tree7b43d7059e8c1fc9fb7a3a0e73834560ec93fa27
parentd9e02a5d0c1a81925df33a9b25501fc90db91451 (diff)
Define TEST_MODE 0 when we're in production
-rw-r--r--index.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.php b/index.php
index dd226f5b..1c98f2b3 100644
--- a/index.php
+++ b/index.php
@@ -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 {