changed descendents_by_type to descendents and added descendent_count

This commit is contained in:
Tim Almdal
2008-11-20 00:45:40 +00:00
parent d48d71a705
commit bd76b2e89f
2 changed files with 36 additions and 18 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ class Media_RSS_Controller extends Controller {
$view->item = $item;
$offset = $this->input->get("offset", 0);
$view->children = $item->decendents_by_type("photo", Media_RSS_Controller::$LIMIT, $offset);
$view->children = $item->decendents(Media_RSS_Controller::$LIMIT, $offset, "photo");
if (!empty($offset)) {
$view->prevOffset = $offset - Media_RSS_Controller::$LIMIT;