summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorCiaranG <ciaran@ciarang.com>2009-03-05 16:18:59 +0000
committerCiaranG <ciaran@ciarang.com>2009-03-05 16:18:59 +0000
commit3c53e821cc545d14807c9197d07e8686028a846d (patch)
treee51f35dc8783ea2ba3c9443d28a55a707330909a /index.php
parente5345d8d7a5b519cfb24c9e2a971b485b3c1c872 (diff)
parentea0c5f565c9ca4b34c1071a51333f0f842a954b9 (diff)
Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/index.php b/index.php
index 03c044415..dae1ae751 100644
--- a/index.php
+++ b/index.php
@@ -65,6 +65,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');