Эх сурвалжийг харах

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 жил өмнө
parent
commit
063b6b8d51

+ 1 - 1
core/databases/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);

+ 1 - 1
core/default_settings/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);

+ 1 - 1
core/domain_settings/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);

+ 1 - 1
core/install/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);

+ 1 - 1
core/menu/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);

+ 1 - 1
core/upgrade/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);

+ 1 - 1
core/user_settings/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);

+ 1 - 1
core/users/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);

+ 1 - 1
resources/captcha/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);

+ 1 - 1
resources/classes/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);

+ 1 - 1
resources/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);

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

+ 1 - 1
themes/accessible/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);

+ 1 - 1
themes/enhanced/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);

+ 1 - 1
themes/minimized/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);