summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-08 14:37:19 +0300
committerAndrew Dolgov <[email protected]>2010-11-08 14:37:19 +0300
commitaa1c2aa4f9eecdad2da212c731573b4aa1604dd0 (patch)
tree8671275d66a5184700e6cd72569811c4fb4f8a74 /functions.php
parent4bd248490f66284cc071bf117ba564abbd39e672 (diff)
subtoolbar: remove adaptive/all_articles view modes from generated feed urls by default
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index 72a060636..508a36d4e 100644
--- a/functions.php
+++ b/functions.php
@@ -4203,8 +4203,15 @@
$search_q = "";
}
+ // Adaptive doesn't really make any sense for generated feeds
+ // All Articles is the default, so no need to insert it either
+ if ($view_mode == "adaptive" || $view_mode == "all_articles")
+ $view_mode = "";
+ else
+ $view_mode = "&view-mode=$view_mode";
+
$rss_link = htmlspecialchars(get_self_url_prefix() .
- "/backend.php?op=rss&id=$feed_id&is_cat=$is_cat&view-mode=$view_mode$search_q");
+ "/backend.php?op=rss&id=$feed_id&is_cat=$is_cat$view_mode$search_q");
#print "
# <a target=\"_blank\"