Skip to content

Commit 02a2fcf

Browse files
datamwebmichalsn
andauthored
Update system/Debug/Toolbar.php
Co-authored-by: Michal Sniatala <[email protected]>
1 parent 971caa9 commit 02a2fcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Debug/Toolbar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ public function prepare(?RequestInterface $request = null, ?ResponseInterface $r
423423
// Non-HTML formats should not include the debugbar
424424
// then we send headers saying where to find the debug data
425425
// for this response
426-
if ($request->isAJAX() || ! str_contains($format, 'html') || $this->isCustomAjax) {
426+
if ($this->isDisabled || ! str_contains($format, 'html')) {
427427
$response->setHeader('Debugbar-Time', "{$time}")
428428
->setHeader('Debugbar-Link', site_url("?debugbar_time={$time}"));
429429

0 commit comments

Comments
 (0)