summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2008-12-09 21:21:31 -0500
committerStarla Insigna <hatkirby@fourisland.com>2008-12-09 21:21:31 -0500
commit9107fce738865f27908f2c4ae9f8f913b3a32c0e (patch)
tree59272ca4aa0ec5f90e193f8448d1f1582d758837
parenta11718cc70dbc7c03e44e7761deba5e17bdfd7d5 (diff)
downloadfourisland-9107fce738865f27908f2c4ae9f8f913b3a32c0e.tar.gz
fourisland-9107fce738865f27908f2c4ae9f8f913b3a32c0e.tar.bz2
fourisland-9107fce738865f27908f2c4ae9f8f913b3a32c0e.zip
Tweaked tag cloud
Previously, the tag cloud excluded tags which weren't used for "published" posts, but when counting the ones that were, it also counted any instances
of the tag in other types of posts. This has now been fixed.
-rwxr-xr-xincludes/footer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/footer.php b/includes/footer.php index 4fe5ec5..be8dd1b 100755 --- a/includes/footer.php +++ b/includes/footer.php
@@ -211,7 +211,7 @@ if (!isset($noRightbar))
211 $i=0; 211 $i=0;
212 while ($gettags3[$i] = mysql_fetch_array($gettags2)) 212 while ($gettags3[$i] = mysql_fetch_array($gettags2))
213 { 213 {
214 $cnttag = "SELECT COUNT(*) FROM tags WHERE tag = \"" . $gettags3[$i]['tag'] . "\""; 214 $cnttag = "SELECT COUNT(*) FROM tags WHERE tag = \"" . $gettags3[$i]['tag'] . "\" AND post_type = \"published\"";
215 $cnttag2 = mysql_query($cnttag); 215 $cnttag2 = mysql_query($cnttag);
216 $cnttag3 = mysql_fetch_array($cnttag2); 216 $cnttag3 = mysql_fetch_array($cnttag2);
217 217