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.
This commit is contained in:
Mafoo
2016-01-20 11:25:02 +00:00
committed by mafoo
parent 5efc4dd0b7
commit 56b34c34ca
69 changed files with 69 additions and 69 deletions

View File

@@ -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);