mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Annoying output comments fix for json Flex
This commit is contained in:
parent
e0ff168cf3
commit
34f8053244
|
|
@ -440,7 +440,7 @@ class FlexCollection extends ObjectCollection implements FlexCollectionInterface
|
|||
] + $context
|
||||
);
|
||||
|
||||
if ($debugger->enabled()) {
|
||||
if ($debugger->enabled() && $grav['uri']->extension() !== 'json') {
|
||||
$output = "\n<!–– START {$type} collection ––>\n{$output}\n<!–– END {$type} collection ––>\n";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -627,7 +627,7 @@ class FlexObject implements FlexObjectInterface, FlexAuthorizeInterface
|
|||
] + $context
|
||||
);
|
||||
|
||||
if ($debugger->enabled()) {
|
||||
if ($debugger->enabled() && $grav['uri']->extension() !== '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