Use the type_id since we already have it, avoid unnecessary db hits.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 27 May 2010 21:50:50 +0000 (17:50 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 27 May 2010 21:50:50 +0000 (17:50 -0400)
kronolith/lib/Tagger.php

index 1733d93..8091d26 100644 (file)
@@ -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;