X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FUpdater.php;h=0fb68c5aa151bedffe10e5c79e8207997ee812de;hb=64c34078e4782d8f41e6c7f2beb7682823e99498;hp=1bc5be0c3d24ad9b0c1bd8b8f6f0eabaab9c71ed;hpb=b786c8836f0576d4feb1543471950c5d24bc7939;p=github%2Fshaarli%2FShaarli.git diff --git a/application/Updater.php b/application/Updater.php index 1bc5be0c..0fb68c5a 100644 --- a/application/Updater.php +++ b/application/Updater.php @@ -378,6 +378,22 @@ class Updater $this->conf->set('plugins.PIWIK_URL', 'http://'. $this->conf->get('plugins.PIWIK_URL')); $this->conf->write($this->isLoggedIn); + + return true; + } + + /** + * Use ATOM feed as default. + */ + public function updateMethodAtomDefault() + { + if (!$this->conf->exists('feed.show_atom') || $this->conf->get('feed.show_atom') === true) { + return true; + } + + $this->conf->set('feed.show_atom', true); + $this->conf->write($this->isLoggedIn); + return true; }