From 8829b45d9ccecd81869504786bb5cee82d0f1252 Mon Sep 17 00:00:00 2001 From: Ricardo Verdugo Date: Tue, 22 Oct 2024 10:48:52 +0100 Subject: [PATCH] Update FlexObject.php --- system/src/Grav/Framework/Flex/FlexObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Framework/Flex/FlexObject.php b/system/src/Grav/Framework/Flex/FlexObject.php index 5cf838d63..58bd7eb4d 100644 --- a/system/src/Grav/Framework/Flex/FlexObject.php +++ b/system/src/Grav/Framework/Flex/FlexObject.php @@ -627,7 +627,7 @@ class FlexObject implements FlexObjectInterface, FlexAuthorizeInterface ] + $context ); - if ($debugger->enabled() && $grav['uri']->extension() !== 'json') { + if ($debugger->enabled() && $grav['uri']->getContentType() !== 'application/json') { $name = $this->getKey() . ' (' . $type . ')'; $output = "\n\n{$output}\n\n"; }