diff options
| author | Greg Roach <fisharebest@gmail.com> | 2015-02-06 12:38:53 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2015-02-06 12:51:23 +0000 |
| commit | 4eaf71860c09d9b6b5df88e29470b4caffa142c5 (patch) | |
| tree | 57dc38f872ccf0a22058b623b3d72bfd4d4ffa71 /site-unavailable.php | |
| parent | 34cf9938011e12e18f7d67e5aef1ec90ed0208be (diff) | |
| download | webtrees-4eaf71860c09d9b6b5df88e29470b4caffa142c5.tar.gz webtrees-4eaf71860c09d9b6b5df88e29470b4caffa142c5.tar.bz2 webtrees-4eaf71860c09d9b6b5df88e29470b4caffa142c5.zip | |
Undefined constants when site offline
Diffstat (limited to 'site-unavailable.php')
| -rw-r--r-- | site-unavailable.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/site-unavailable.php b/site-unavailable.php index 320a0bcc93..87f702e28b 100644 --- a/site-unavailable.php +++ b/site-unavailable.php @@ -31,10 +31,18 @@ require 'vendor/autoload.php'; // session.php won’t run until a configuration file and database connection exist... // This next block of code is a minimal version of session.php define('WT_WEBTREES', 'webtrees'); +define('WT_BASE_URL', ''); define('WT_ROOT', ''); define('WT_GED_ID', 0); define('WT_DATA_DIR', realpath('data') . DIRECTORY_SEPARATOR); +// No configuration file? Start the setup wizard +if (!file_exists(WT_DATA_DIR . 'config.ini.php')) { + header('Location: setup.php'); + + return; +} + $WT_SESSION = new \stdClass; $WT_SESSION->locale = ''; |
