]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/Updater.php
Fixes #304: use atom feed as default
[github/shaarli/Shaarli.git] / application / Updater.php
index fd7e2073089eaca16a51fee881a1a68b45cc05df..efbfc832d352cb4872dd96a4f5a3e3162a88c4e3 100644 (file)
@@ -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;
     }
 }