From 2ea89aba4faa5509ca68c7e9b6b9ab71c1929935 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 11 Mar 2017 14:11:06 +0100 Subject: Fixes #304: use atom feed as default RSS feed is still available with the setting set to false --- application/Updater.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'application/Updater.php') diff --git a/application/Updater.php b/application/Updater.php index fd7e2073..efbfc832 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; } } -- cgit v1.2.3