mirror of
https://github.com/getgrav/grav.git
synced 2026-03-04 11:31:43 +01:00
fix for ini_set
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
* Fixed `Medium::relativePath()` for streams
|
||||
* Fixed `Object` serialization breaking if overriding `jsonSerialize()` method
|
||||
* Grav 1.6: Fixed `FlexObject::update()` call with partial object update
|
||||
* Fixed `YamlFormatter::decode()` when calling `init_set()` with integer
|
||||
|
||||
# v1.6.0-beta.6
|
||||
## 11/12/2018
|
||||
|
||||
@@ -89,7 +89,7 @@ class YamlFormatter extends AbstractFormatter
|
||||
if (\function_exists('yaml_parse') && $this->useNativeDecoder()) {
|
||||
// Safely decode YAML.
|
||||
$saved = @ini_get('yaml.decode_php');
|
||||
@ini_set('yaml.decode_php', 0);
|
||||
@ini_set('yaml.decode_php', '0');
|
||||
$decoded = @yaml_parse($data);
|
||||
@ini_set('yaml.decode_php', $saved);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user