diff options
author | Vincent Malley <vincent.malley@insalien.org> | 2015-01-16 11:42:39 -0500 |
---|---|---|
committer | Vincent Malley <vincent.malley@insalien.org> | 2015-01-16 11:42:39 -0500 |
commit | 7fe8a9adc44a73221959263b08b516ec20bf85a0 (patch) | |
tree | 86565b386339d527273df781a21f999376f33167 /inc/poche/Routing.class.php | |
parent | af5c371e951ae2bc9ccd9a7164e0c04101b39ace (diff) | |
download | wallabag-7fe8a9adc44a73221959263b08b516ec20bf85a0.tar.gz wallabag-7fe8a9adc44a73221959263b08b516ec20bf85a0.tar.zst wallabag-7fe8a9adc44a73221959263b08b516ec20bf85a0.zip |
[RSS] introducing query param 'limit' to restrict the number of items to display in RSS feeds.
Diffstat (limited to 'inc/poche/Routing.class.php')
-rwxr-xr-x | inc/poche/Routing.class.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/poche/Routing.class.php b/inc/poche/Routing.class.php index 5acd08ba..be06a433 100755 --- a/inc/poche/Routing.class.php +++ b/inc/poche/Routing.class.php | |||
@@ -102,7 +102,8 @@ class Routing | |||
102 | $this->wallabag->login($this->referer); | 102 | $this->wallabag->login($this->referer); |
103 | } elseif (isset($_GET['feed']) && isset($_GET['user_id'])) { | 103 | } elseif (isset($_GET['feed']) && isset($_GET['user_id'])) { |
104 | $tag_id = (isset($_GET['tag_id']) ? intval($_GET['tag_id']) : 0); | 104 | $tag_id = (isset($_GET['tag_id']) ? intval($_GET['tag_id']) : 0); |
105 | $this->wallabag->generateFeeds($_GET['token'], filter_var($_GET['user_id'],FILTER_SANITIZE_NUMBER_INT), $tag_id, $_GET['type']); | 105 | $limit = (isset($_GET['limit']) ? intval($_GET['limit']) : 0); |
106 | $this->wallabag->generateFeeds($_GET['token'], filter_var($_GET['user_id'],FILTER_SANITIZE_NUMBER_INT), $tag_id, $_GET['type'], $limit); | ||
106 | } | 107 | } |
107 | 108 | ||
108 | //allowed ONLY to logged in user | 109 | //allowed ONLY to logged in user |