]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
delete and edit wired up on full view
authorDave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 8 Apr 2010 11:15:45 +0000 (11:15 +0000)
committerDave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 8 Apr 2010 11:15:45 +0000 (11:15 +0000)
watch.php

index c46a209488bd7f72a8dec40f580b47d326cdf4ee..7ca752265e2d8cb1b1b7f481869abbffc6eb5209 100644 (file)
--- a/watch.php
+++ b/watch.php
@@ -42,11 +42,12 @@ if ($videos = get_entity($video_id)) {
        $area1 .= "<div id='content_header' class='clearfloat'><div class='content_header_title'><h2>".$title."</h2></div>";
        if ($videos->canEdit()) {
                $area1 .= "<div class='content_header_options'>
-                                       <a class='action_button' href=\"{$CONFIG->wwwroot}mod/videolist/edit.php?file_guid={$videos->getGUID()}\">".elgg_echo('edit')."</a>";
+                                       <a class='action_button' href=\"{$CONFIG->wwwroot}mod/videolist/edit.php?video={$videos->getGUID()}\">".elgg_echo('edit')."</a>";
 
                $area1 .= elgg_view('output/confirmlink',array( 
-                                                       'href' => $CONFIG->wwwroot . "action/videolist/delete?file=" . $videos->getGUID(),
+                                                       'href' => $CONFIG->wwwroot . "action/videolist/delete?video=" . $videos->getGUID(),
                                                        'text' => elgg_echo('delete'),
+                                                       'is_action' => true,
                                                        'confirm' => elgg_echo('document:delete:confirm'),
                                                        'class' => 'action_button disabled'))."</div>";  
        }