diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-11-26 21:14:54 -0800 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-11-26 21:14:54 -0800 |
| commit | 96b00d6cfe437e376d5547a10aa8d1cf7def8c13 (patch) | |
| tree | 355f3df10c86f595e1373a53a0746b877b27489b /modules/tag/helpers | |
| parent | b9a0e0963746420d82ad3107135aa7a9256825be (diff) | |
Convert some more Database::instance() calls to db::build() form.
Diffstat (limited to 'modules/tag/helpers')
| -rw-r--r-- | modules/tag/helpers/tag.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/tag/helpers/tag.php b/modules/tag/helpers/tag.php index c4c4ba15..3e8a0d20 100644 --- a/modules/tag/helpers/tag.php +++ b/modules/tag/helpers/tag.php @@ -89,12 +89,12 @@ class tag_Core { */ static function item_tags($item) { $tags = array(); - foreach (Database::instance() + foreach (db::build() ->select("name") ->from("tags") ->join("items_tags", "tags.id", "items_tags.tag_id", "left") ->where("items_tags.item_id", "=", $item->id) - ->get() as $row) { + ->execute() as $row) { $tags[] = $row->name; } return $tags; |
