소스 검색

Text Class: Fixes.

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

+ 4 - 4
resources/classes/text.php

@@ -2,7 +2,7 @@
 
 /**
  * Get the text for the correct translation
- * 
+ *
  * @method array get
  */
 class text {
@@ -32,10 +32,10 @@ class text {
 	public function get($language_code = null, $app_path = null) {
 		//get the app_languages.php
 			if (isset($app_path)) {
-				require_once glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/".$app_path."/app_{languages}.php",GLOB_BRACE);
+				require glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/".$app_path."/app_{languages}.php",GLOB_BRACE);
 			}
 			else {
-				require_once getcwd().'/app_languages.php';
+				require getcwd().'/app_languages.php';
 			}
 
 		//get the available languages
@@ -49,7 +49,7 @@ class text {
 			}
 			$_SESSION['app']['languages'] = array_unique($app_languages);
 
-		//add multi-lingual support
+		//reduce to specific language
 			if ($language_code != 'all') {
 				foreach($text as $key => $value) {
 					if ($language_code == null) {