mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Revert "Fixed page save failing because of uploaded images [#3191]"
This reverts commit 2c866f3c10.
# Conflicts:
# CHANGELOG.md
This commit is contained in:
parent
7def7af8ff
commit
b681a86646
|
|
@ -354,8 +354,8 @@ class FlexPageObject extends FlexObject implements PageInterface, FlexTranslateI
|
|||
*/
|
||||
public function setNestedProperty($property, $value, $separator = null)
|
||||
{
|
||||
if (strpos($property, 'header' . $separator) === 0) {
|
||||
$this->getProperty('header')->set(str_replace('header' . $separator, '', $property), $value, $separator);
|
||||
if (strpos($property, 'header.') === 0) {
|
||||
$this->getProperty('header')->set(str_replace('header.', '', $property), $value, $separator);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
|
@ -372,8 +372,8 @@ class FlexPageObject extends FlexObject implements PageInterface, FlexTranslateI
|
|||
*/
|
||||
public function unsetNestedProperty($property, $separator = null)
|
||||
{
|
||||
if (strpos($property, 'header' . $separator) === 0) {
|
||||
$this->getProperty('header')->undef(str_replace('header' . $separator, '', $property), $separator);
|
||||
if (strpos($property, 'header.') === 0) {
|
||||
$this->getProperty('header')->undef(str_replace('header.', '', $property), $separator);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user