diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-03-04 06:24:33 -0800 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-03-04 06:24:33 -0800 |
commit | f9babf6a7d4215e763a8c1766a2e6592fe274953 (patch) | |
tree | a28e7166d6f49026b9e1587b0cc1985980ad84d6 /index.php | |
parent | 09ebc965d58df9cc087568d99c3f4c5ba41496e2 (diff) |
Check for config file when running
When running the full system, check for a config file, and throw an
error if none is found.
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -61,6 +61,14 @@ function main() { global $user, $action; + if (!_have_config()) { + $msg = sprintf(_("No configuration file found. Try running ". + "the installation program first.")); + $sac = new ServerErrorAction($msg); + $sac->showPage(); + return; + } + // For database errors PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'handleError'); |