From aa1c2aa4f9eecdad2da212c731573b4aa1604dd0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 8 Nov 2010 14:37:19 +0300 Subject: [PATCH] subtoolbar: remove adaptive/all_articles view modes from generated feed urls by default --- functions.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 72a06063..508a36d4 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 " #