summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xLibertyTag.php12
-rw-r--r--templates/view_tags_mini_inc.tpl4
2 files changed, 8 insertions, 8 deletions
diff --git a/LibertyTag.php b/LibertyTag.php
index 9be9c09..b0e294a 100755
--- a/LibertyTag.php
+++ b/LibertyTag.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_tags/LibertyTag.php,v 1.53 2010/01/23 18:20:29 spiderr Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_tags/LibertyTag.php,v 1.54 2010/03/10 19:18:45 spiderr Exp $
* @package tags
*
* @copyright Copyright (c) 2004-2006, bitweaver.org
@@ -475,11 +475,11 @@ class LibertyTag extends LibertyBase {
GROUP BY tg.`tag_id`,tg.`tag`
ORDER BY $sort_mode";
- $query_cant = "
+ $queryCount = "
SELECT COUNT( * )
FROM `".BIT_DB_PREFIX."tags` tg";
- $result = $this->mDb->query($query,$bindVars, ( !empty($pParamHash['max_records']) ? $pParamHash['max_records'] : NULL ));
- $cant = $this->mDb->getOne($query_cant);
+ $result = $this->mDb->query( $query,$bindVars, ( !empty($pParamHash['max_records']) ? $pParamHash['max_records'] : NULL ) );
+ $cant = $this->mDb->getOne( $queryCount );
$ret = array();
while ($res = $result->fetchRow()) {
@@ -552,11 +552,11 @@ class LibertyTag extends LibertyBase {
* This function gets the number of times a tag is used aka Popularity Count
**/
function getPopCount($tag_id){
- $query_cant = "
+ $queryCount = "
SELECT COUNT( * )
FROM `".BIT_DB_PREFIX."tags_content_map` tgc
WHERE tgc.`tag_id` = ?";
- $cant = $this->mDb->getOne($query_cant, array($tag_id) );
+ $cant = $this->mDb->getOne($queryCount, array($tag_id) );
return $cant;
}
diff --git a/templates/view_tags_mini_inc.tpl b/templates/view_tags_mini_inc.tpl
index 183d522..2e6f547 100644
--- a/templates/view_tags_mini_inc.tpl
+++ b/templates/view_tags_mini_inc.tpl
@@ -18,7 +18,7 @@
<input type="hidden" name="tag_{$tagData[tag].tag_id}" value="{$tagData[tag].tag}" />
{/if}
- <a href="{$tagData[tag].tag_url}" rel="tag">{$tagData[tag].tag}</a>
+ <a href="{$tagData[tag].tag_url|append_url:'content_type_guid':$gContent->mContentTypeGuid}" rel="tag">{$tagData[tag].tag}</a>
{if !$smarty.section.tag.last}, {/if}
{/section}
@@ -32,4 +32,4 @@
{/form}
</div>
{/if}
-{/strip} \ No newline at end of file
+{/strip}