From 11f5654f4dac721091a93ce53d5f43782f3cc18f Mon Sep 17 00:00:00 2001 From: Jan Kristinus Date: Thu, 20 Jun 2024 12:21:29 +0200 Subject: [PATCH] CS --- plugins/rest/lib/rest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/rest/lib/rest.php b/plugins/rest/lib/rest.php index 19e414ead..f82d8810a 100644 --- a/plugins/rest/lib/rest.php +++ b/plugins/rest/lib/rest.php @@ -41,7 +41,7 @@ public static function getRoutes() public static function getCurrentPath() { $url = parse_url($_SERVER['REQUEST_URI']); - if (isset($url['path']) && class_exists('\rex_yrewrite')) { + if (isset($url['path']) && class_exists('\rex_yrewrite') && rex_yrewrite::getCurrentDomain()) { $currentPath = str_replace(rex_yrewrite::getCurrentDomain()->getPath(), '/', $url['path']); } else { $currentPath = '';