summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-11-26 17:08:57 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-11-26 17:08:57 +0000
commitb3be74166c2ab3987737606c9e57851789681833 (patch)
treec7be57d4c52b6ad3f8dd691b411600a124dd1a9f
parente77fd34175a5d7bef5f1561bdbeea8ef253db1d2 (diff)
Breadcrumbs now look right for dynamic tag albums
-rw-r--r--modules/tag/models/tag.php5
1 files changed, 4 insertions, 1 deletions
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);
}