diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-03-21 20:10:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-21 20:10:49 +0100 |
commit | c4c655d9bfe68a914898d76bb9c479eea1b04f72 (patch) | |
tree | f3c681508a588d516e50b33581b6e4b6e90f7326 /application/Updater.php | |
parent | 4bad4bde5a2b8dcbb00e95662e30b4694fe97266 (diff) | |
parent | 2ea89aba4faa5509ca68c7e9b6b9ab71c1929935 (diff) | |
download | Shaarli-c4c655d9bfe68a914898d76bb9c479eea1b04f72.tar.gz Shaarli-c4c655d9bfe68a914898d76bb9c479eea1b04f72.tar.zst Shaarli-c4c655d9bfe68a914898d76bb9c479eea1b04f72.zip |
Merge pull request #804 from ArthurHoaro/feature/atom-default
Fixes #304: use atom feed as default
Diffstat (limited to 'application/Updater.php')
-rw-r--r-- | application/Updater.php | 16 |
1 files changed, 16 insertions, 0 deletions
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 | |||
378 | 378 | ||
379 | $this->conf->set('plugins.PIWIK_URL', 'http://'. $this->conf->get('plugins.PIWIK_URL')); | 379 | $this->conf->set('plugins.PIWIK_URL', 'http://'. $this->conf->get('plugins.PIWIK_URL')); |
380 | $this->conf->write($this->isLoggedIn); | 380 | $this->conf->write($this->isLoggedIn); |
381 | |||
382 | return true; | ||
383 | } | ||
384 | |||
385 | /** | ||
386 | * Use ATOM feed as default. | ||
387 | */ | ||
388 | public function updateMethodAtomDefault() | ||
389 | { | ||
390 | if (!$this->conf->exists('feed.show_atom') || $this->conf->get('feed.show_atom') === true) { | ||
391 | return true; | ||
392 | } | ||
393 | |||
394 | $this->conf->set('feed.show_atom', true); | ||
395 | $this->conf->write($this->isLoggedIn); | ||
396 | |||
381 | return true; | 397 | return true; |
382 | } | 398 | } |
383 | } | 399 | } |