summaryrefslogtreecommitdiff
path: root/modules/tag/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-01-07 23:38:08 -0800
committerBharat Mediratta <bharat@menalto.com>2011-01-07 23:38:08 -0800
commit966dee8628293f78fbf9431281709ceba011d3c2 (patch)
treeda319f68a81b4a796104fd7c21e341a1cc8493c9 /modules/tag/helpers
parent7bbbe307ac3979b3e540d379c45a88046e4ff0e4 (diff)
Move tag count management into the model. Fixes #1586.
Diffstat (limited to 'modules/tag/helpers')
-rw-r--r--modules/tag/helpers/tag.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/tag/helpers/tag.php b/modules/tag/helpers/tag.php
index bcd3b0c0..7d5c643a 100644
--- a/modules/tag/helpers/tag.php
+++ b/modules/tag/helpers/tag.php
@@ -36,11 +36,9 @@ class tag_Core {
$tag = ORM::factory("tag")->where("name", "=", $tag_name)->find();
if (!$tag->loaded()) {
$tag->name = $tag_name;
- $tag->count = 0;
}
$tag->add($item);
- $tag->count++;
return $tag->save();
}