From 37c4ce18f24cd9e8b9fb10edb238b9ba55888d44 Mon Sep 17 00:00:00 2001 From: Jaidyn Ann <10477760+JadedCtrl@users.noreply.github.com> Date: Wed, 14 Feb 2024 21:50:41 -0600 Subject: [PATCH] Fix variable typo --- res/library/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); }