summaryrefslogtreecommitdiffstats
path: root/app/app.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/app.php')
-rwxr-xr-xapp/app.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/app.php b/app/app.php
index 269d99c..ec4e446 100755
--- a/app/app.php
+++ b/app/app.php
@@ -34,3 +34,13 @@ $l10n = new Simplel10n($conf['locale']);
function _g($str, $comment='') {
return Simplel10n::getString($str);
}
+
+function custom_path($file = '')
+{
+ return __DIR__.'/../custom' . (!empty($file) ? '/'.$file : '');
+}
+
+function ensure_installed()
+{
+ return file_exists(custom_path('config.yml')) && file_exists(custom_path('people.opml'));
+}