From b7e350b8453a7a612d75a1bd6ee4e1d5ebb71357 Mon Sep 17 00:00:00 2001 From: Matthew Vale Date: Thu, 14 Jan 2016 16:15:41 +0000 Subject: [PATCH] changed text.php to use $_SERVER["PROJECT_ROOT"] --- resources/classes/text.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/classes/text.php b/resources/classes/text.php index d82bb9449b..cbfce3ae1e 100644 --- a/resources/classes/text.php +++ b/resources/classes/text.php @@ -31,11 +31,11 @@ class text { public function get($language_code = null, $app_path = null, $exclude_global = false) { //get the global app_languages.php if(!$exclude_global){ - include $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/app_languages.php"; + include $_SERVER["PROJECT_ROOT"]."/resources/app_languages.php"; } //get the app_languages.php if ($app_path != null) { - $lang_path = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/".$app_path."/app_languages.php"; + $lang_path = $_SERVER["PROJECT_ROOT"]."/".$app_path."/app_languages.php"; } else { $lang_path = getcwd().'/app_languages.php';