mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 00:28:47 +02:00
remove request param for env dev switch (use log instead for debug)
This commit is contained in:
committed by
bdalsass
parent
549bfcafd9
commit
8b8e6bab33
@@ -85,12 +85,6 @@ if (file_exists(dirname(__DIR__).'/.env.local.php')) {
|
||||
}
|
||||
}
|
||||
|
||||
// Set debug mode only when necessary
|
||||
if (utils::ReadParam('debug', 'false') === 'true')
|
||||
{
|
||||
$_SERVER['APP_DEBUG'] = true;
|
||||
}
|
||||
|
||||
$_SERVER += $_ENV;
|
||||
$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = (isset($_SERVER['APP_ENV']) ? $_SERVER['APP_ENV'] : (isset($_ENV['APP_ENV']) ? $_ENV['APP_ENV'] : null)) ?: 'prod';
|
||||
$_SERVER['APP_DEBUG'] = isset($_SERVER['APP_DEBUG']) ? $_SERVER['APP_DEBUG'] : (isset($_ENV['APP_DEBUG']) ? $_ENV['APP_DEBUG'] : ('prod' !== $_SERVER['APP_ENV']));
|
||||
|
||||
Reference in New Issue
Block a user