From dbe3a6321e0de81b552eecefe8f2ffebb535f753 Mon Sep 17 00:00:00 2001 From: Ricardo Verdugo Date: Tue, 22 Oct 2024 10:46:20 +0100 Subject: [PATCH 1/2] Update FlexCollection.php --- system/src/Grav/Framework/Flex/FlexCollection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Framework/Flex/FlexCollection.php b/system/src/Grav/Framework/Flex/FlexCollection.php index 68110a6451..cfa91008e9 100644 --- a/system/src/Grav/Framework/Flex/FlexCollection.php +++ b/system/src/Grav/Framework/Flex/FlexCollection.php @@ -440,7 +440,7 @@ public function render(string $layout = null, array $context = []) ] + $context ); - if ($debugger->enabled() && $grav['uri']->extension() !== 'json') { + if ($debugger->enabled() && $grav['uri']->getContentType() !== 'application/json') { $output = "\n\n{$output}\n\n"; } From 78401ffc3560d9516ad66a658a47ea1c5b15aecc Mon Sep 17 00:00:00 2001 From: Ricardo Verdugo Date: Tue, 22 Oct 2024 10:52:57 +0100 Subject: [PATCH 2/2] Update FlexObject.php (#3858) --- 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 5cf838d63b..58bd7eb4da 100644 --- a/system/src/Grav/Framework/Flex/FlexObject.php +++ b/system/src/Grav/Framework/Flex/FlexObject.php @@ -627,7 +627,7 @@ public function render(string $layout = null, array $context = []) ] + $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"; }