We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d75e426 commit 3fc49fdCopy full SHA for 3fc49fd
1 file changed
system/CodeIgniter.php
@@ -528,7 +528,7 @@ protected function detectEnvironment()
528
{
529
// Make sure ENVIRONMENT isn't already set by other means.
530
if (! defined('ENVIRONMENT')) {
531
- define('ENVIRONMENT', $_SERVER['CI_ENVIRONMENT'] ?? 'production');
+ define('ENVIRONMENT', getenv('CI_ENVIRONMENT') ?? 'production');
532
}
533
534
0 commit comments