diff options
Diffstat (limited to 'pages/videolist')
-rw-r--r-- | pages/videolist/add.php | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/pages/videolist/add.php b/pages/videolist/add.php index 0ae067391..6dd6a2f1f 100644 --- a/pages/videolist/add.php +++ b/pages/videolist/add.php @@ -14,17 +14,21 @@ $title = elgg_echo('videolist:add'); // set up breadcrumbs elgg_push_breadcrumb(elgg_echo('videolist'), "file/all"); -if (elgg_instanceof($owner, 'user')) { - elgg_push_breadcrumb($owner->name, "videolist/owner/$owner->username"); +if (elgg_instanceof($page_owner, 'user')) { + elgg_push_breadcrumb($page_owner->name, "videolist/owner/$page_owner->username"); } else { - elgg_push_breadcrumb($owner->name, "videolist/group/$owner->guid/all"); + elgg_push_breadcrumb($page_owner->name, "videolist/group/$page_owner->guid/all"); } elgg_push_breadcrumb($title); // create form $form_vars = array(); -$body_vars = array(); -$content = elgg_view_form('videolist/add', $form_vars, $body_vars); +$body_vars = array( + 'container_guid' => $page_owner->guid, + 'access_id' => elgg_instanceof($page_owner, 'user') ? ACCESS_DEFAULT : $page_owner->group_acl, +); + +$content = elgg_view_form('videolist/edit', $form_vars, $body_vars); $body = elgg_view_layout('content', array( 'content' => $content, |