diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-02 19:56:57 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-02 19:56:57 +0000 |
commit | d742de4e1100df15153784fa0702a334cd388d73 (patch) | |
tree | 64b0a688f73dab4675564c71adbca3cf25593956 /index.php | |
parent | 3ec437029bc23fff6560871f67171c3990205477 (diff) |
Improve welcome scaffolding to walk you through getting the var
directory set up correctly and a database config file in place.
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -49,7 +49,11 @@ if (PHP_SAPI == 'cli') { @system('mkdir -p test/var/logs'); define('VARPATH', realpath('test/var') . '/'); } else { - define('VARPATH', realpath('var') . '/'); + if (file_exists('var')) { + define('VARPATH', realpath('var') . '/'); + } else { + define('VARPATH', getcwd() . "/var/"); + } } // Initialize. |