aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/configuration.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/engine/lib/configuration.php b/engine/lib/configuration.php
index 4bbed775c..3459c52a3 100644
--- a/engine/lib/configuration.php
+++ b/engine/lib/configuration.php
@@ -62,6 +62,17 @@ function elgg_get_data_path() {
}
/**
+ * Get the root directory for this installation
+ *
+ * @return string
+ * @since 1.8.0
+ */
+function elgg_get_root_dir() {
+ global $CONFIG;
+ return $CONFIG->path;
+}
+
+/**
* Get an Elgg configuration value
*
* @param string $name Name of the configuration value