From b9ee37f30effee856dc963b38751f3e904fd8ddf Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Mon, 9 Mar 2009 14:38:25 +0000 Subject: 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. --- core/controllers/albums.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/controllers') 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"); -- cgit v1.2.3