subtoolbar: remove adaptive/all_articles view modes from generated feed urls by default

This commit is contained in:
Andrew Dolgov 2010-11-08 14:37:19 +03:00
parent 4bd248490f
commit aa1c2aa4f9
1 changed files with 8 additions and 1 deletions

View File

@ -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\"