mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
don't limit tag cloud by last 30 days
This commit is contained in:
@@ -3867,6 +3867,8 @@
|
|||||||
|
|
||||||
/* get first ref_id to count from */
|
/* get first ref_id to count from */
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
$query = "";
|
$query = "";
|
||||||
|
|
||||||
if (DB_TYPE == "pgsql") {
|
if (DB_TYPE == "pgsql") {
|
||||||
@@ -3880,11 +3882,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$result = db_query($link, $query);
|
$result = db_query($link, $query);
|
||||||
$first_id = db_fetch_result($result, 0, "id");
|
$first_id = db_fetch_result($result, 0, "id"); */
|
||||||
|
|
||||||
|
//AND post_int_id >= '$first_id'
|
||||||
$query = "SELECT tag_name, COUNT(post_int_id) AS count
|
$query = "SELECT tag_name, COUNT(post_int_id) AS count
|
||||||
FROM ttrss_tags WHERE owner_uid = ".$_SESSION["uid"]."
|
FROM ttrss_tags WHERE owner_uid = ".$_SESSION["uid"]."
|
||||||
AND post_int_id >= '$first_id'
|
|
||||||
GROUP BY tag_name ORDER BY count DESC LIMIT 50";
|
GROUP BY tag_name ORDER BY count DESC LIMIT 50";
|
||||||
|
|
||||||
$result = db_query($link, $query);
|
$result = db_query($link, $query);
|
||||||
|
|||||||
@@ -416,7 +416,7 @@
|
|||||||
print "<div id=\"infoBoxTitle\">".__('Tag cloud')."</div>";
|
print "<div id=\"infoBoxTitle\">".__('Tag cloud')."</div>";
|
||||||
print "<div class=\"infoBoxContents\">";
|
print "<div class=\"infoBoxContents\">";
|
||||||
|
|
||||||
print __("Showing most popular tags for the last month")." (<a
|
print __("Showing most popular tags ")." (<a
|
||||||
href='javascript:toggleTags(true)'>".__('browse all')."</a>):<br/>";
|
href='javascript:toggleTags(true)'>".__('browse all')."</a>):<br/>";
|
||||||
|
|
||||||
print "<div class=\"tagCloudContainer\">";
|
print "<div class=\"tagCloudContainer\">";
|
||||||
|
|||||||
Reference in New Issue
Block a user