summaryrefslogtreecommitdiff
path: root/core/controllers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-03-09 14:38:25 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-03-09 14:38:25 +0000
commitb9ee37f30effee856dc963b38751f3e904fd8ddf (patch)
tree3d7b4360923923e4972029c156281df9c4c6daaa /core/controllers
parentac82e0a9dff9511eaf97bb7fc6f25add762583a4 (diff)
Override the ORM_MTTP::children and ORM_MTPP::descendants methods in
the item model and always pass the orderby fields. This insures that all children or descendant calls will respect the album sort order.
Diffstat (limited to 'core/controllers')
-rw-r--r--core/controllers/albums.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/controllers/albums.php b/core/controllers/albums.php
index 2a55ecac..270b2184 100644
--- a/core/controllers/albums.php
+++ b/core/controllers/albums.php
@@ -53,8 +53,7 @@ class Albums_Controller extends Items_Controller {
$template = new Theme_View("page.html", "album");
$template->set_global("page_size", $page_size);
$template->set_global("item", $album);
- $template->set_global("children", $album->viewable()->children($page_size, $offset,
- array($album->sort_column => $album->sort_order)));
+ $template->set_global("children", $album->viewable()->children($page_size, $offset));
$template->set_global("children_count", $children_count);
$template->set_global("parents", $album->parents());
$template->content = new View("album.html");