From 36499fa946daef28dcc62c83731b70d2ef272ac0 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Thu, 27 May 2010 17:50:50 -0400 Subject: [PATCH] Use the type_id since we already have it, avoid unnecessary db hits. --- kronolith/lib/Tagger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kronolith/lib/Tagger.php b/kronolith/lib/Tagger.php index 1733d9369..8091d263f 100644 --- a/kronolith/lib/Tagger.php +++ b/kronolith/lib/Tagger.php @@ -81,7 +81,7 @@ class Kronolith_Tagger } $tags = array(); foreach ($localId as $id) { - $tags = $tags + $this->_tagger->getTags(array('objectId' => array('object' => $id, 'type' => $type))); + $tags = $tags + $this->_tagger->getTags(array('objectId' => array('object' => $id, 'type' => $this->_type_ids[$type]))); } return $tags; -- 2.11.0