From b3be74166c2ab3987737606c9e57851789681833 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Wed, 26 Nov 2008 17:08:57 +0000 Subject: Breadcrumbs now look right for dynamic tag albums --- modules/tag/models/tag.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/tag/models/tag.php b/modules/tag/models/tag.php index d086013d..c0e94f29 100644 --- a/modules/tag/models/tag.php +++ b/modules/tag/models/tag.php @@ -34,7 +34,10 @@ class Tag_Model extends ORM { } else if ($function == "children_count") { return $this->count; } else if ($function == "parents") { - return ORM::factory("item", 1); + // Need to return as an ORM_Iterator as opposed to just the model. + return ORM::factory("item") + ->where("id", 1) + ->find_all(); } else { return parent::__call($function, $args); } -- cgit v1.2.3