Skip to content

Commit

Permalink
Update FlexObject.php (#3858)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardo118 authored Oct 22, 2024
1 parent dbe3a63 commit 78401ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/src/Grav/Framework/Flex/FlexObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<!–– START {$name} object ––>\n{$output}\n<!–– END {$name} object ––>\n";
}
Expand Down

0 comments on commit 78401ff

Please sign in to comment.