Home
last modified time | relevance | path

Searched hist:"0772 dde297e1ba8cd913370fcdf9a3f959574ee0" (Results 1 – 4 of 4) sorted by relevance

/dokuwiki/lib/plugins/config/_test/
H A DWriterTest.php0772dde297e1ba8cd913370fcdf9a3f959574ee0 Wed Oct 26 14:45:37 UTC 2022 Andreas Gohr <andi@splitbrain.org> Fix handling of unknown array settings

When a plugin used an array setting and was then installed, the old
configuration can remain in local.php. It is handled by the
SettingUndefined class. However this class used the base out() mechanism
which didn't know about arrays. The result was a fatal error resulting
in a completely empty config file.

This moves the error handling from the SettingArray class to the base
class which fixes the original problem.

It also adds a check if the Writer is about to write a completely empty
config file and refuses to do so, throwing an Exception.

Probably related to #3777

/dokuwiki/lib/plugins/config/core/Setting/
H A DSettingArray.php0772dde297e1ba8cd913370fcdf9a3f959574ee0 Wed Oct 26 14:45:37 UTC 2022 Andreas Gohr <andi@splitbrain.org> Fix handling of unknown array settings

When a plugin used an array setting and was then installed, the old
configuration can remain in local.php. It is handled by the
SettingUndefined class. However this class used the base out() mechanism
which didn't know about arrays. The result was a fatal error resulting
in a completely empty config file.

This moves the error handling from the SettingArray class to the base
class which fixes the original problem.

It also adds a check if the Writer is about to write a completely empty
config file and refuses to do so, throwing an Exception.

Probably related to #3777

H A DSetting.php0772dde297e1ba8cd913370fcdf9a3f959574ee0 Wed Oct 26 14:45:37 UTC 2022 Andreas Gohr <andi@splitbrain.org> Fix handling of unknown array settings

When a plugin used an array setting and was then installed, the old
configuration can remain in local.php. It is handled by the
SettingUndefined class. However this class used the base out() mechanism
which didn't know about arrays. The result was a fatal error resulting
in a completely empty config file.

This moves the error handling from the SettingArray class to the base
class which fixes the original problem.

It also adds a check if the Writer is about to write a completely empty
config file and refuses to do so, throwing an Exception.

Probably related to #3777

/dokuwiki/lib/plugins/config/core/
H A DWriter.php0772dde297e1ba8cd913370fcdf9a3f959574ee0 Wed Oct 26 14:45:37 UTC 2022 Andreas Gohr <andi@splitbrain.org> Fix handling of unknown array settings

When a plugin used an array setting and was then installed, the old
configuration can remain in local.php. It is handled by the
SettingUndefined class. However this class used the base out() mechanism
which didn't know about arrays. The result was a fatal error resulting
in a completely empty config file.

This moves the error handling from the SettingArray class to the base
class which fixes the original problem.

It also adds a check if the Writer is about to write a completely empty
config file and refuses to do so, throwing an Exception.

Probably related to #3777