summaryrefslogtreecommitdiff
path: root/tt-rss.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-10-28 02:26:50 +0100
committerAndrew Dolgov <[email protected]>2005-10-28 02:26:50 +0100
commitf1b9a8ee78ea99abf93997ab42dd3ee93d605438 (patch)
tree3960e759f6e25139efccdf1af71338b50fb0fbc6 /tt-rss.php
parent2907afa6fab45a57b74b788c4cde278acf124550 (diff)
added DEFAULT_ARTICLE_LIMIT functionality, patch from adjuster
Diffstat (limited to 'tt-rss.php')
-rw-r--r--tt-rss.php26
1 files changed, 22 insertions, 4 deletions
diff --git a/tt-rss.php b/tt-rss.php
index 9d8160df7..018ab8659 100644
--- a/tt-rss.php
+++ b/tt-rss.php
@@ -103,10 +103,28 @@
&nbsp;Limit:
<select id="limitbox" onchange="javascript:viewCurrentFeed(0, '')">
- <option>15</option>
- <option selected>30</option>
- <option>60</option>
- <option>All</option>
+
+ <?
+ $limits = array(15 => 15, 30 => 30, 60 => 60);
+
+ if (DEFAULT_ARTILE_LIMIT >= 0) {
+ $limits[DEFAULT_ARTICLE_LIMIT] = DEFAULT_ARTICLE_LIMIT;
+ }
+
+ asort($limits);
+
+ array_push($limits, 0);
+
+ foreach ($limits as $key) {
+ print "<option";
+ if ($key == DEFAULT_ARTICLE_LIMIT) { print " selected"; }
+ print ">";
+
+ if ($limits[$key] == 0) { print "All"; } else { print $limits[$key]; }
+
+ print "</option>";
+ } ?>
+
</select>
&nbsp;Feed: <input class="button" type="submit"