From: Andrew Dolgov Date: Thu, 13 Aug 2015 06:51:39 +0000 (+0300) Subject: fix some remaining old-style viewfeed() calls X-Git-Tag: 16.3~136 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=dcbe36b2a26965b1280daed89cba6db2085cabfb;p=tt-rss.git fix some remaining old-style viewfeed() calls --- diff --git a/classes/dlg.php b/classes/dlg.php index 7b1abca3..60c5265b 100644 --- a/classes/dlg.php +++ b/classes/dlg.php @@ -144,7 +144,7 @@ class Dlg extends Handler_Protected { $key_escaped = str_replace("'", "\\'", $key); - echo "' . $key . ' '; } diff --git a/classes/feeds.php b/classes/feeds.php index 9e07057b..c3cb72da 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -455,7 +455,7 @@ class Feeds extends Handler_Protected { $reply['content'] .= "
". "
$feed_icon_img
". - "". + "". $line["feed_title"]." $vf_catchup_link
"; @@ -500,7 +500,7 @@ class Feeds extends Handler_Protected { if (@$line["feed_title"]) { $rgba = @$rgba_cache[$feed_id]; - $reply['content'] .= "". + $reply['content'] .= "". truncate_string($line["feed_title"],30).""; } } @@ -517,7 +517,7 @@ class Feeds extends Handler_Protected { if ($line["feed_title"] && !$vfeed_group_enabled) { - $reply['content'] .= " $feed_icon_img"; @@ -560,7 +560,7 @@ class Feeds extends Handler_Protected { $reply['content'] .= "
". "
$feed_icon_img
". - "". + "". $line["feed_title"]." $vf_catchup_link
"; } @@ -624,7 +624,7 @@ class Feeds extends Handler_Protected { $reply['content'] .= "
". + onclick=\"viewfeed({feed:$feed_id})\">". truncate_string($line["feed_title"],30)."
"; } @@ -639,7 +639,7 @@ class Feeds extends Handler_Protected { if (!get_pref("VFEED_GROUP_BY_FEED") && $line["feed_title"]) { $reply['content'] .= "$feed_icon_img"; + onclick=\"viewfeed({feed:$feed_id})\">$feed_icon_img"; } $reply['content'] .= ""; diff --git a/include/functions2.php b/include/functions2.php index 19012c8e..9bbfc7b2 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -1618,7 +1618,7 @@ $tags_str = ""; for ($i = 0; $i < $maxtags; $i++) { - $tags_str .= "" . $tags[$i] . ", "; + $tags_str .= "" . $tags[$i] . ", "; } $tags_str = mb_substr($tags_str, 0, mb_strlen($tags_str)-2); diff --git a/js/functions.js b/js/functions.js index 843edaec..8e569496 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1240,7 +1240,7 @@ function unsubscribeFeed(feed_id, title) { updateFeedList(); } else { if (feed_id == getActiveFeedId()) - setTimeout("viewfeed(-5)", 100); + setTimeout("viewfeed({feed:-5})", 100); if (feed_id < 0) updateFeedList(); } diff --git a/plugins/af_psql_trgm/init.php b/plugins/af_psql_trgm/init.php index d83dff80..d89c122f 100644 --- a/plugins/af_psql_trgm/init.php +++ b/plugins/af_psql_trgm/init.php @@ -88,7 +88,7 @@ class Af_Psql_Trgm extends Plugin { print " ". $line["title"].""; - print " (". + print " (". htmlspecialchars($line["feed_title"]).")"; print " ($sm)";