소스 검색

changed throw Exception to die

nothing ever eval runs the root.php so changed to die to cause a immediate report of error and stop code processing.
Mafoo 9 년 전
부모
커밋
99b38d8bb0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      root.php

+ 1 - 1
root.php

@@ -75,7 +75,7 @@
 				$i++;
 			}
 			if(!file_exists($path. '/.project.ROOT')){
-				throw new Exception("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
+				die("Failed to locate the Project Root by searching for .project.ROOT please contact support for assistance");
 			}
 			$project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
 			define('PROJECT_PATH', $project_path);