diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-03 12:07:28 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-03 12:07:28 +0000 |
commit | 755947e111d89d6babcd0f070d91c2245e22a809 (patch) | |
tree | 284e62a3f1cfca8f9d23e88680544cde4f5aea79 /engine/lib | |
parent | 949a233076ec18f86e60f90a7a8837cb422664af (diff) | |
download | elgg-755947e111d89d6babcd0f070d91c2245e22a809.tar.gz elgg-755947e111d89d6babcd0f070d91c2245e22a809.tar.bz2 |
Refs #2428 just a few more CONFIG uses left to be replaced
git-svn-id: http://code.elgg.org/elgg/trunk@8000 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/configuration.php | 11 |
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 |