diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-30 18:56:31 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-30 18:56:31 +0000 |
commit | 3b6143c0c5861685a8161e7816824a225290185f (patch) | |
tree | f21baca893b1d6fb9389770a284a8ff3cf04426d /views/default/layout/objects | |
parent | f23218799dcc49448603c95eabf1179c6f179533 (diff) | |
download | elgg-3b6143c0c5861685a8161e7816824a225290185f.tar.gz elgg-3b6143c0c5861685a8161e7816824a225290185f.tar.bz2 |
updated the default object entity view
git-svn-id: http://code.elgg.org/elgg/trunk@7773 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/layout/objects')
-rw-r--r-- | views/default/layout/objects/list/metadata.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/default/layout/objects/list/metadata.php b/views/default/layout/objects/list/metadata.php index 6b2fae7bf..43bfaf50b 100644 --- a/views/default/layout/objects/list/metadata.php +++ b/views/default/layout/objects/list/metadata.php @@ -7,7 +7,7 @@ */ $entity = $vars['entity']; -$handler = $vars['handler']; +$handler = elgg_get_array_value('handler', $vars, ''); ?> <ul class="elgg-list-metadata"> @@ -23,7 +23,7 @@ echo "<li>$likes</li>"; echo elgg_view("entity/metadata", array('entity' => $entity)); // links to delete or edit. -if ($entity->canEdit()) { +if ($entity->canEdit() && $handler) { $edit_url = "pg/$handler/edit/{$entity->getGUID()}"; $edit_link = elgg_view('output/url', array( |