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) {