summaryrefslogtreecommitdiff
path: root/lib/common.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-03-04 06:24:33 -0800
committerEvan Prodromou <evan@controlyourself.ca>2009-03-04 06:24:33 -0800
commitf9babf6a7d4215e763a8c1766a2e6592fe274953 (patch)
treea28e7166d6f49026b9e1587b0cc1985980ad84d6 /lib/common.php
parent09ebc965d58df9cc087568d99c3f4c5ba41496e2 (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 'lib/common.php')
-rw-r--r--lib/common.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/common.php b/lib/common.php
index 0fff3af2e..ca8dedeef 100644
--- a/lib/common.php
+++ b/lib/common.php
@@ -187,6 +187,12 @@ foreach ($_config_files as $_config_file) {
}
}
+function _have_config()
+{
+ global $_have_a_config;
+ return $_have_a_config;
+}
+
// XXX: Throw a conniption if database not installed
// Fixup for laconica.ini