From 28f1d97b9cc0777ff50cff625c8700323d778776 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Mon, 2 Feb 2026 23:59:29 +0100 Subject: [PATCH] APi --- config/current.ver | 2 +- src/ApiKernel.php | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/config/current.ver b/config/current.ver index 9579e1f..d79a5f8 100644 --- a/config/current.ver +++ b/config/current.ver @@ -1 +1 @@ -1.2.13 \ No newline at end of file +1.2.14 \ No newline at end of file diff --git a/src/ApiKernel.php b/src/ApiKernel.php index 2741bcd..d89d05b 100644 --- a/src/ApiKernel.php +++ b/src/ApiKernel.php @@ -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]));