diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-26 17:08:57 +0000 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-26 17:08:57 +0000 |
| commit | b3be74166c2ab3987737606c9e57851789681833 (patch) | |
| tree | c7be57d4c52b6ad3f8dd691b411600a124dd1a9f | |
| parent | e77fd34175a5d7bef5f1561bdbeea8ef253db1d2 (diff) | |
Breadcrumbs now look right for dynamic tag albums
| -rw-r--r-- | modules/tag/models/tag.php | 5 |
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); } |
