summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-08-05 11:04:42 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-08-05 11:04:42 -0700
commita92a46b0cda18a3ba794a67c07181a2ca405a2a6 (patch)
tree7bfcb78dde4d4de763b6ea943c5997d8ee0ee14d /modules
parentfb4bfa5711f6db61205b58628ec978b68c3d36df (diff)
Change to use the new children and children_count API
Diffstat (limited to 'modules')
-rw-r--r--modules/organize/controllers/organize.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/organize/controllers/organize.php b/modules/organize/controllers/organize.php
index e10e33b5..cbaaca6e 100644
--- a/modules/organize/controllers/organize.php
+++ b/modules/organize/controllers/organize.php
@@ -55,7 +55,7 @@ class Organize_Controller extends Controller {
access::required("view", $item);
access::required("edit", $item);
- $albums = $item->children(null, 0, "album", array("title" => "ASC"));
+ $albums = $item->children(null, 0, array("type" => "album"), array("title" => "ASC"));
$children = "";
foreach ($albums as $album) {
@@ -63,7 +63,8 @@ class Organize_Controller extends Controller {
$v->album = $album;
$v->selected = false;
$v->children = array();
- $v->album_icon = $album->children_count("album") ? "ui-icon-plus" : "gBranchEmpty";
+ $v->album_icon =
+ $album->children_count(array("type" => "album")) ? "ui-icon-plus" : "gBranchEmpty";
$children .= $v->__toString();
}
@@ -82,7 +83,7 @@ class Organize_Controller extends Controller {
}
private function _tree($item, $parent, $depth=0) {
- $albums = $parent->children(null, 0, "album", array("title" => "ASC"));
+ $albums = $parent->children(null, 0, array("type" => "album"), array("title" => "ASC"));
$v = new View("organize_tree.html");
$v->album = $parent;