]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #4631 $object->canEdit() check not necessary and added a confirm popup on delete...
authorCash Costello <cash.costello@gmail.com>
Mon, 9 Jul 2012 23:38:24 +0000 (19:38 -0400)
committerCash Costello <cash.costello@gmail.com>
Mon, 9 Jul 2012 23:38:24 +0000 (19:38 -0400)
engine/lib/navigation.php

index 61d283f4babf210a2c8b06b5a335b4db8de1a4a3..10b11acfe1953fc769de0d74330d1e587118038b 100644 (file)
@@ -336,15 +336,16 @@ function elgg_river_menu_setup($hook, $type, $return, $params) {
                        }
                }
                
-               if ($object->canEdit() && elgg_is_admin_logged_in()) {
+               if (elgg_is_admin_logged_in()) {
                        $options = array(
-                                       'name' => 'delete',
-                                       'href' => "action/river/delete?id=$item->id",
-                                       'text' => elgg_view_icon('delete'),
-                                       'title' => elgg_echo('delete'),
-                                       'is_action' => true,
-                                       'priority' => 200,
-                               );
+                               'name' => 'delete',
+                               'href' => "action/river/delete?id=$item->id",
+                               'text' => elgg_view_icon('delete'),
+                               'title' => elgg_echo('delete'),
+                               'confirm' => elgg_echo('deleteconfirm'),
+                               'is_action' => true,
+                               'priority' => 200,
+                       );
                        $return[] = ElggMenuItem::factory($options);
                }
        }