summaryrefslogtreecommitdiffstats
path: root/app/helpers.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers.php')
-rw-r--r--app/helpers.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/helpers.php b/app/helpers.php
index 6ec55c1..56d8eba 100644
--- a/app/helpers.php
+++ b/app/helpers.php
@@ -12,6 +12,28 @@ function custom_path($file = '')
}
/**
+ * Path to the _views_ directory.
+ *
+ * @param string $file Append this filename to the returned path.
+ * @return string
+ */
+function views_path($file = '')
+{
+ return custom_path('views/install.tpl.php');
+}
+
+/**
+ * Path to the _admin_ directory.
+ *
+ * @param string $file Append this filename to the returned path.
+ * @return string
+ */
+function admin_path($file = '')
+{
+ return __DIR__.'/../admin' . (!empty($file) ? '/'.$file : '');
+}
+
+/**
* Is moonmoon installed?
*
* @return bool