mirror of
https://github.com/getgrav/grav.git
synced 2026-07-06 23:09:25 +02:00
logic fix
This commit is contained in:
@@ -440,7 +440,8 @@ class FlexCollection extends ObjectCollection implements FlexCollectionInterface
|
||||
] + $context
|
||||
);
|
||||
|
||||
if ($debugger->enabled() && ($grav['uri']->getContentType() !== 'application/json' || $grav['uri']->extension() !== 'json')) {
|
||||
if ($debugger->enabled() &&
|
||||
!($grav['uri']->getContentType() === 'application/json' || $grav['uri']->extension() === 'json')) {
|
||||
$output = "\n<!–– START {$type} collection ––>\n{$output}\n<!–– END {$type} collection ––>\n";
|
||||
}
|
||||
|
||||
|
||||
@@ -627,7 +627,8 @@ class FlexObject implements FlexObjectInterface, FlexAuthorizeInterface
|
||||
] + $context
|
||||
);
|
||||
|
||||
if ($debugger->enabled() && ($grav['uri']->getContentType() !== 'application/json' || $grav['uri']->extension() !== 'json')) {
|
||||
if ($debugger->enabled() &&
|
||||
!($grav['uri']->getContentType() === 'application/json' || $grav['uri']->extension() === 'json')) {
|
||||
$name = $this->getKey() . ' (' . $type . ')';
|
||||
$output = "\n<!–– START {$name} object ––>\n{$output}\n<!–– END {$name} object ––>\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user