aboutsummaryrefslogtreecommitdiff
path: root/app/Models/ConfigurationSetter.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/ConfigurationSetter.php')
-rw-r--r--app/Models/ConfigurationSetter.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/Models/ConfigurationSetter.php b/app/Models/ConfigurationSetter.php
index c822bcf4d..258c2ad58 100644
--- a/app/Models/ConfigurationSetter.php
+++ b/app/Models/ConfigurationSetter.php
@@ -234,6 +234,13 @@ class FreshRSS_ConfigurationSetter {
$data['sticky_post'] = $this->handleBool($value);
}
+ private function _darkMode(&$data, $value) {
+ if (!in_array($value, [ 'no', 'auto'], true)) {
+ $value = 'no';
+ }
+ $data['darkMode'] = $value;
+ }
+
private function _bottomline_date(&$data, $value) {
$data['bottomline_date'] = $this->handleBool($value);
}