From 755947e111d89d6babcd0f070d91c2245e22a809 Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 3 Feb 2011 12:07:28 +0000 Subject: 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 --- engine/lib/configuration.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'engine/lib/configuration.php') 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 @@ -61,6 +61,17 @@ function elgg_get_data_path() { return $CONFIG->dataroot; } +/** + * 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 * -- cgit v1.2.3