mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Update FlexObject.php (#3858)
This commit is contained in:
parent
dbe3a6321e
commit
78401ffc35
|
|
@ -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<!–– START {$name} object ––>\n{$output}\n<!–– END {$name} object ––>\n";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user