From 7cf682abf46bcaa112b63c500a884ba25c0dd8b3 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Thu, 13 Mar 2014 14:55:45 +0200 Subject: Partially revert PR #2190 The core shouldn't depend on constants that are not defined by itself --- index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 6a932424e..80082111e 100755 --- a/index.php +++ b/index.php @@ -68,7 +68,7 @@ switch (ENVIRONMENT) default: header('HTTP/1.1 503 Service Unavailable.', TRUE, 503); echo 'The application environment is not set correctly.'; - exit(1); // EXIT_* constants not yet defined; 1 is EXIT_ERROR, a generic error. + exit(1); // EXIT_ERROR } /* @@ -192,7 +192,7 @@ switch (ENVIRONMENT) { header('HTTP/1.1 503 Service Unavailable.', TRUE, 503); echo 'Your system folder path does not appear to be set correctly. Please open the following file and correct this: '.pathinfo(__FILE__, PATHINFO_BASENAME); - exit(3); // EXIT_* constants not yet defined; 3 is EXIT_CONFIG. + exit(3); // EXIT_CONFIG } /* @@ -228,7 +228,7 @@ switch (ENVIRONMENT) { header('HTTP/1.1 503 Service Unavailable.', TRUE, 503); echo 'Your application folder path does not appear to be set correctly. Please open the following file and correct this: '.SELF; - exit(3); // EXIT_* constants not yet defined; 3 is EXIT_CONFIG. + exit(3); // EXIT_CONFIG } define('APPPATH', BASEPATH.$application_folder.DIRECTORY_SEPARATOR); @@ -245,7 +245,7 @@ switch (ENVIRONMENT) { header('HTTP/1.1 503 Service Unavailable.', TRUE, 503); echo 'Your view folder path does not appear to be set correctly. Please open the following file and correct this: '.SELF; - exit(3); // EXIT_* constants not yet defined; 3 is EXIT_CONFIG. + exit(3); // EXIT_CONFIG } else { -- cgit v1.2.3-24-g4f1b