aboutsummaryrefslogtreecommitdiff
path: root/app/Models/ConfigurationSetter.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-11-02 21:34:14 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-11-02 21:34:14 +0100
commit455e488e791cb0dd64b3b660ed8afa418d6c9641 (patch)
tree84ba0bf1bbaaae9f822efe801e4606191864ec74 /app/Models/ConfigurationSetter.php
parenta74eac88d8ccd38ff700e12cc42410e4780349a0 (diff)
parent697817eebf754c2a05c7b4c88df1f13dbd0179da (diff)
Merge pull request #1024 from marienfressinaud/feature/make-url-auto-update-in-config
Move auto-update server URL alterable (config)
Diffstat (limited to 'app/Models/ConfigurationSetter.php')
-rw-r--r--app/Models/ConfigurationSetter.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/Models/ConfigurationSetter.php b/app/Models/ConfigurationSetter.php
index 5c8a1ce29..250c14c39 100644
--- a/app/Models/ConfigurationSetter.php
+++ b/app/Models/ConfigurationSetter.php
@@ -378,4 +378,12 @@ class FreshRSS_ConfigurationSetter {
private function _unsafe_autologin_enabled(&$data, $value) {
$data['unsafe_autologin_enabled'] = $this->handleBool($value);
}
+
+ private function _auto_update_url(&$data, $value) {
+ if (!$value) {
+ return;
+ }
+
+ $data['auto_update_url'] = $value;
+ }
}