diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-12-05 15:13:32 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-12-05 15:13:32 +0100 |
commit | 59cc585271a5f253b15617d97e26a29403a929dc (patch) | |
tree | 2aa6ff065fe43137e79397f88d86fb99e31c990f | |
parent | f0133fe5f48386f09c3dc5d549a2204fdfda27bc (diff) | |
download | wallabag-59cc585271a5f253b15617d97e26a29403a929dc.tar.gz wallabag-59cc585271a5f253b15617d97e26a29403a929dc.tar.zst wallabag-59cc585271a5f253b15617d97e26a29403a929dc.zip |
[add] add RSS feed for archive
-rw-r--r-- | inc/poche/Poche.class.php | 2 | ||||
-rw-r--r-- | themes/default/config.twig | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index ac66dfc9..a8a54ff0 100644 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -858,7 +858,7 @@ class Poche | |||
858 | 858 | ||
859 | public function generateFeeds($token, $user_id, $type = 'home') | 859 | public function generateFeeds($token, $user_id, $type = 'home') |
860 | { | 860 | { |
861 | $allowed_types = array('home', 'fav'); | 861 | $allowed_types = array('home', 'fav', 'archive'); |
862 | $config = $this->store->getConfigUser($user_id); | 862 | $config = $this->store->getConfigUser($user_id); |
863 | 863 | ||
864 | if (!in_array($type, $allowed_types) || | 864 | if (!in_array($type, $allowed_types) || |
diff --git a/themes/default/config.twig b/themes/default/config.twig index 7cf3fe9c..1d7fb562 100644 --- a/themes/default/config.twig +++ b/themes/default/config.twig | |||
@@ -36,6 +36,7 @@ | |||
36 | <ul> | 36 | <ul> |
37 | <li><a href="?feed&type=home&user_id={{ user_id }}&token={{ token }}" target="_blank">{% trans "unread feed" %}</a></li> | 37 | <li><a href="?feed&type=home&user_id={{ user_id }}&token={{ token }}" target="_blank">{% trans "unread feed" %}</a></li> |
38 | <li><a href="?feed&type=fav&user_id={{ user_id }}&token={{ token }}" target="_blank">{% trans "favorites feed" %}</a></li> | 38 | <li><a href="?feed&type=fav&user_id={{ user_id }}&token={{ token }}" target="_blank">{% trans "favorites feed" %}</a></li> |
39 | <li><a href="?feed&type=archive&user_id={{ user_id }}&token={{ token }}" target="_blank">{% trans "unread feed" %}</a></li> | ||
39 | </ul> | 40 | </ul> |
40 | {% endif %} | 41 | {% endif %} |
41 | 42 | ||