mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Explicity check for CI server running.
This commit is contained in:
parent
43927037ed
commit
68f2a8acca
11
index.php
11
index.php
@ -23,7 +23,16 @@ $useKint = false;
|
||||
*
|
||||
* NOTE: If you change these, also change the error_reporting() code below
|
||||
*/
|
||||
define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development');
|
||||
|
||||
// running under Continuous Integration server?
|
||||
if (getenv('CI') !== false)
|
||||
{
|
||||
define('ENVIRONMENT', 'testing');
|
||||
}
|
||||
else
|
||||
{
|
||||
define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development');
|
||||
}
|
||||
|
||||
/*
|
||||
*---------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user