From 1167f06cf1ba04d6ecf029ea09ac218526e1ab3a Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sun, 9 Feb 2025 03:08:55 +0100 Subject: [PATCH] Fix check if BASE_URL is defined defined does not honor the current namespace and you always have to use the full quallified name of the constant. --- server/lib/OPodSync/API.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/OPodSync/API.php b/server/lib/OPodSync/API.php index 071d76f..1a50417 100644 --- a/server/lib/OPodSync/API.php +++ b/server/lib/OPodSync/API.php @@ -18,7 +18,7 @@ class API public function __construct() { - $url = defined('BASE_URL') ? BASE_URL : null; + $url = defined(__NAMESPACE__ . '\\BASE_URL') ? BASE_URL : null; $url ??= getenv('BASE_URL', true) ?: null; if (!$url) {