Skip to content

Commit

Permalink
fix debug addon when redaxo running in subfolder (#5216)
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Jul 17, 2022
1 parent c93ddb7 commit 3c95cbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .tools/psalm/baseline.xml
Expand Up @@ -441,7 +441,8 @@
</MixedArgument>
</file>
<file src="redaxo/src/addons/debug/boot.php">
<MixedArgument occurrences="2">
<MixedArgument occurrences="3">
<code>$_SERVER['REQUEST_URI']</code>
<code>$query['query']</code>
<code>rex_debug_clockwork::getInstance()-&gt;getRequest()-&gt;id</code>
</MixedArgument>
Expand Down
2 changes: 1 addition & 1 deletion redaxo/src/addons/debug/boot.php
Expand Up @@ -21,7 +21,7 @@
}

// prepend backend folder
$apiUrl = rex_path::basename(rex_path::backend()).'/'.rex_debug_clockwork::getClockworkApiUrl();
$apiUrl = dirname($_SERVER['REQUEST_URI']).'/'.rex_debug_clockwork::getClockworkApiUrl();
$appearance = rex::getTheme();
if (!$appearance) {
$appearance = 'auto';
Expand Down

0 comments on commit 3c95cbe

Please sign in to comment.