diff --git a/res/library/main.php b/res/library/main.php index 12c54b9..9a4ff65 100644 --- a/res/library/main.php +++ b/res/library/main.php @@ -5,8 +5,8 @@ // Return the absolute path to the project's root. function get_project_root() { - return preg_replace("%" . $GLOBALS["root_name"] . ".*" . "%", - $GLOBALS["root_name"] . "/", + return preg_replace("%" . $GLOBALS["root"] . ".*" . "%", + $GLOBALS["root"] . "/", getcwd()); }