Merge branch 'develop' into feature/v1.8

This commit is contained in:
Andy Miller 2024-10-22 12:09:26 +01:00
commit cccce836f6
No known key found for this signature in database
GPG Key ID: 9F2CF38AEBDB0AE0
3 changed files with 3 additions and 2 deletions

View File

@ -28,6 +28,7 @@
1. [](#bugfix)
* Fixes deprecated for return type in Filesystem with PHP 8.3.6 [#3831](https://github.com/getgrav/grav/issues/3831)
* Fix for `exif_imagtetype()` throwing an exception when file doesn't exist
* Fix JSON output comments check with content type [#3859](https://github.com/getgrav/grav/pull/3859)
# v1.7.46
## 05/15/2024

View File

@ -440,7 +440,7 @@ class FlexCollection extends ObjectCollection implements FlexCollectionInterface
] + $context
);
if ($debugger->enabled()) {
if ($debugger->enabled() && $grav['uri']->getContentType() !== 'application/json') {
$output = "\n<! START {$type} collection >\n{$output}\n<! END {$type} collection >\n";
}

View File

@ -627,7 +627,7 @@ class FlexObject implements FlexObjectInterface, FlexAuthorizeInterface
] + $context
);
if ($debugger->enabled()) {
if ($debugger->enabled() && $grav['uri']->getContentType() !== 'application/json') {
$name = $this->getKey() . ' (' . $type . ')';
$output = "\n<! START {$name} object >\n{$output}\n<! END {$name} object >\n";
}