mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Merge branch 'develop' into feature/v1.8
This commit is contained in:
commit
cccce836f6
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user