diff options
| author | 2020-04-16 18:09:54 +0200 | |
|---|---|---|
| committer | 2020-04-16 18:09:54 +0200 | |
| commit | 5ddae689535cb5df7ae4d54f0efc3806d71a266c (patch) | |
| tree | 04e69ba40476786881029117abd64dc2dfba4c9e /app/Models/ConfigurationSetter.php | |
| parent | 475feffdbec733b3d3221276217692bed5f8f090 (diff) | |
Option to control which categories to unfold (#2888)
#fix https://github.com/FreshRSS/FreshRSS/issues/2324
Diffstat (limited to 'app/Models/ConfigurationSetter.php')
| -rw-r--r-- | app/Models/ConfigurationSetter.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Models/ConfigurationSetter.php b/app/Models/ConfigurationSetter.php index 75bbe4c2f..0026ae5b2 100644 --- a/app/Models/ConfigurationSetter.php +++ b/app/Models/ConfigurationSetter.php @@ -183,7 +183,10 @@ class FreshRSS_ConfigurationSetter { } private function _display_categories(&$data, $value) { - $data['display_categories'] = $this->handleBool($value); + if (!in_array($value, [ 'active', 'all', 'none' ])) { + $value = $value === true ? 'all' : 'active'; + } + $data['display_categories'] = $value; } private function _display_posts(&$data, $value) { |
