summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-05-24 06:10:09 +0000
committerBharat Mediratta <bharat@menalto.com>2009-05-24 06:10:09 +0000
commit0a6249ec21b864b9d2ddf0798dbb6efd2bf6ecb9 (patch)
tree40c6526e1cdd43de65de81ad1fddc42d62cde5ce
parentee0bd765b6792d42eefda46f63a72e66ddd0a93a (diff)
Add support for index.local.php where you can override any existing settings (useful for developers). This might be a bad idea; trying it out for now.
-rw-r--r--index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.php b/index.php
index d1db3ee7..815ff5f5 100644
--- a/index.php
+++ b/index.php
@@ -59,5 +59,9 @@ if (PHP_SAPI == 'cli') {
}
define('TMPPATH', VARPATH . '/tmp');
+if (file_exists("index.local.php")) {
+ include("index.local.php");
+}
+
// Initialize.
require SYSPATH . 'core/Bootstrap' . EXT;