Skip to content

Commit ff326d5

Browse files
authored
[5.3] Debug plugin Collector (joomla#45747)
1 parent e5bffae commit ff326d5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

plugins/system/debug/src/Extension/Debug.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,12 @@ public function onAfterRespond(AfterRespondEvent|ApplicationEvent $event): void
344344
}
345345

346346
$debugBarRenderer = new JavascriptRenderer($this->debugBar, Uri::root(true) . '/media/vendor/debugbar/');
347-
$openHandlerUrl = Uri::base(true) . '/index.php?option=com_ajax&plugin=debug&group=system&format=raw&action=openhandler';
348-
$openHandlerUrl .= '&' . ($formToken ?? Session::getFormToken()) . '=1';
349-
350-
$debugBarRenderer->setOpenHandlerUrl($openHandlerUrl);
351347

348+
if ($this->params->get('track_request_history', false)) {
349+
$openHandlerUrl = Uri::base(true) . '/index.php?option=com_ajax&plugin=debug&group=system&format=raw&action=openhandler';
350+
$openHandlerUrl .= '&' . ($formToken ?? Session::getFormToken()) . '=1';
351+
$debugBarRenderer->setOpenHandlerUrl($openHandlerUrl);
352+
}
352353
/**
353354
* @todo disable highlightjs from the DebugBar, import it through NPM
354355
* and deliver it through Joomla's API

0 commit comments

Comments
 (0)