소스 검색

Text class fix.

Nate Jones 10 년 전
부모
커밋
a7d8070f51
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      resources/classes/text.php

+ 2 - 2
resources/classes/text.php

@@ -31,8 +31,8 @@ class text {
 	 */
 	 */
 	public function get($language_code = null, $app_path = null) {
 	public function get($language_code = null, $app_path = null) {
 		//get the app_languages.php
 		//get the app_languages.php
-			if (isset($app_path)) {
-				require glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/".$app_path."/app_{languages}.php",GLOB_BRACE);
+			if ($app_path != null) {
+				require $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/".$app_path."/app_languages.php";
 			}
 			}
 			else {
 			else {
 				require getcwd().'/app_languages.php';
 				require getcwd().'/app_languages.php';