diff options
author | Dave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-07 09:12:36 +0000 |
---|---|---|
committer | Dave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-07 09:12:36 +0000 |
commit | 27060aa8d0f1782ebe7595d1c02fdca0a5dd6725 (patch) | |
tree | feb1e07eb0b6cb667a59519990d08a216aa7883a /views/default | |
parent | 1b812b80069ee62c112488e7b5d883ea263e0ce4 (diff) | |
download | elgg-27060aa8d0f1782ebe7595d1c02fdca0a5dd6725.tar.gz elgg-27060aa8d0f1782ebe7595d1c02fdca0a5dd6725.tar.bz2 |
delete wired up on videolist - still need to add edit
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/forms/edit.php | 1 | ||||
-rw-r--r-- | views/default/object/videolist.php | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/views/default/forms/edit.php b/views/default/forms/edit.php index 09dba432c..00658bd2b 100644 --- a/views/default/forms/edit.php +++ b/views/default/forms/edit.php @@ -29,6 +29,7 @@ $container_guid = $vars['entity']->container_guid; if (isset($vars['entity'])) { echo "<input type='hidden' name=\"file_guid\" value=\"{$vars['entity']->getGUID()}\" />"; } + echo elgg_view('input/securitytoken'); ?> <input type="submit" value="<?php echo elgg_echo("save"); ?>" /> </p> diff --git a/views/default/object/videolist.php b/views/default/object/videolist.php index 19015384a..82336ec97 100644 --- a/views/default/object/videolist.php +++ b/views/default/object/videolist.php @@ -33,8 +33,8 @@ if(!empty($video_file)) { // include edit and delete options if ($owner->canEdit()) { - $info .= "<span class='entity_edit'><a href=\"{$vars['url']}mod/videolist/edit.php?file_guid={$video_guid}\">" . elgg_echo('edit') . "</a></span>"; - $info .= "<span class='delete_button'>" . elgg_view('output/confirmlink',array('href' => $vars['url'] . "action/videolist/delete?file=" . $video_guid, 'text' => elgg_echo("delete"),'confirm' => elgg_echo("videolist:delete:confirm"),)). "</span>"; + $info .= "<span class='entity_edit'><a href=\"{$vars['url']}mod/videolist/edit.php?video={$video_guid}\">" . elgg_echo('edit') . "</a></span>"; + $info .= "<span class='delete_button'>" . elgg_view('output/confirmlink',array('href' => $vars['url'] . "action/videolist/delete?video=" . $video_guid, 'text' => elgg_echo("delete"),'confirm' => elgg_echo("videolist:delete:confirm"),)). "</span>"; } $info .= "</div>"; |