浏览代码

changed text.php to use $_SERVER["PROJECT_ROOT"]

Matthew Vale 9 年之前
父节点
当前提交
d9c51c484f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      resources/classes/text.php

+ 2 - 2
resources/classes/text.php

@@ -31,11 +31,11 @@ class text {
 	public function get($language_code = null, $app_path = null, $exclude_global = false) {
 	public function get($language_code = null, $app_path = null, $exclude_global = false) {
 		//get the global app_languages.php
 		//get the global app_languages.php
 			if(!$exclude_global){
 			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
 		//get the app_languages.php
 			if ($app_path != null) {
 			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 {
 			else {
 				$lang_path = getcwd().'/app_languages.php';
 				$lang_path = getcwd().'/app_languages.php';