This commit is contained in:
2026-02-02 23:59:29 +01:00
parent 27eb48b32f
commit 28f1d97b9c
2 changed files with 3 additions and 4 deletions

View File

@@ -4870,9 +4870,8 @@ SQL;
private function ensureDebugEnv(): void
{
$env = strtolower((string)($this->conf['env'] ?? ''));
if ($env === 'staging') {
return;
}
if ($env === 'staging') return;
if (defined('APP_ENV') && strtolower((string)APP_ENV) === 'staging') return;
$host = '';
if (!empty($_SERVER['HTTP_X_FORWARDED_HOST'])) {
$host = strtolower(trim(explode(',', (string)$_SERVER['HTTP_X_FORWARDED_HOST'])[0]));