Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
dergel committed Jun 20, 2024
1 parent 359afe5 commit 11f5654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/rest/lib/rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand Down

0 comments on commit 11f5654

Please sign in to comment.