Changed the way environment is set

This commit is contained in:
Andreas
2024-01-24 14:51:19 +01:00
parent 1712965fc4
commit 6841711127

View File

@@ -54,7 +54,11 @@
* NOTE: If you change these, also change the error_reporting() code below * NOTE: If you change these, also change the error_reporting() code below
*/ */
#define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development'); #define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development');
define('ENVIRONMENT', 'development'); if (file_exists('.debug')) {
define('ENVIRONMENT', 'development');
} else {
define('ENVIRONMENT', 'production');
}
/* /*
*--------------------------------------------------------------- *---------------------------------------------------------------