]> git.wh0rd.org Git - tt-rss.git/commitdiff
don't limit tag cloud by last 30 days
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 17 May 2007 16:46:57 +0000 (17:46 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 17 May 2007 16:46:57 +0000 (17:46 +0100)
functions.php
modules/popup-dialog.php

index 2ea1f856c3e62dd7d7eee3a5ced0ac51f3888da3..ba8c4e6a6db6c5288494ffd9b7d3d02a5162eed2 100644 (file)
 
                /* get first ref_id to count from */
 
+               /*
+
                $query = "";
 
                if (DB_TYPE == "pgsql") {
                }
 
                $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 
                        FROM ttrss_tags WHERE owner_uid = ".$_SESSION["uid"]." 
-                       AND post_int_id >= '$first_id'
                        GROUP BY tag_name ORDER BY count DESC LIMIT 50";
 
                $result = db_query($link, $query);
index 98e27a6be24b4723fa8c3482ae3e6379172f1466..dbc85831f5b69a3c8d1cc5c8720951b6b2a94322 100644 (file)
                        print "<div id=\"infoBoxTitle\">".__('Tag cloud')."</div>";
                        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/>";
 
                        print "<div class=\"tagCloudContainer\">";