History log of /dokuwiki/lib/plugins/config/core/Setting/Setting.php (Results 1 – 17 of 17)
Revision Date Author Comments
# 1b2deed9 15-Sep-2023 fiwswe <fiwswe@fwml.de>

Use str_starts_with/str_ends_with


# fe15e2c0 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

code style: static visibility


# 177d6836 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

coding style: control flow whitespaces


# d868eb89 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

codestyle adjustments: function declaration braces/spaces


# 8c7c53b0 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

codestyle adjustments: class declaration braces


# 467c1427 29-Aug-2023 Andreas Gohr <andi@splitbrain.org>

Apply rector fixes to config plugin


# 0772dde2 26-Oct-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

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

show more ...


# ffd2c6d6 12-May-2022 Andreas Gohr <andi@splitbrain.org>

use https URLs in config manager


# f74addc3 01-Jun-2018 Andreas Gohr <andi@splitbrain.org>

remove support for _cautionList


# 5f43ccc4 25-May-2018 Andreas Gohr <andi@splitbrain.org>

Merge pull request #2404 from splitbrain/psr2-config-update-comments

improve update() comments


# 8356fe60 25-May-2018 Christopher Smith <chris@jalakai.co.uk>

improve update() comments


# 28cc4f40 25-May-2018 Andreas Gohr <andi@splitbrain.org>

make the onoff setting more boolean

We now parse true and false as well as some common strings


# d6fc72e1 25-May-2018 Andreas Gohr <andi@splitbrain.org>

fix language and TOC handling


# 98a151ba 20-May-2018 Andreas Gohr <andi@splitbrain.org>

Some first Setting class tests


# af40dea1 20-May-2018 Andreas Gohr <andi@splitbrain.org>

proper defaults for initialize

There isn't really unset variables, but we do expect null to be passed
for some of them.

This also moves the update method further up as it's logically the next
step.


# f00299d8 20-May-2018 Andreas Gohr <andi@splitbrain.org>

extract save checking into own method

Instead of having the out() method return empty strings, a new method
tells the writer if a setting should be saved or not. Only then the
out() method is called.


# 0a5b05eb 18-May-2018 Andreas Gohr <andi@splitbrain.org>

Moved settings to their own namespace