diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-09 11:33:16 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-09 11:33:16 +0000 |
commit | 31db19e91841abc92ca1180d52e9f5f5b3a527be (patch) | |
tree | 7d34e9a02111418bad151bf26aaec07f1a78a995 /mod/thewire/views/default/object | |
parent | d499b87e5aa29f01e42da391d12b709d770d55fd (diff) | |
download | elgg-31db19e91841abc92ca1180d52e9f5f5b3a527be.tar.gz elgg-31db19e91841abc92ca1180d52e9f5f5b3a527be.tar.bz2 |
Ticket #1954 fixed
git-svn-id: http://code.elgg.org/elgg/trunk@5319 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/thewire/views/default/object')
-rw-r--r-- | mod/thewire/views/default/object/thewire.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mod/thewire/views/default/object/thewire.php b/mod/thewire/views/default/object/thewire.php index 738ab96ba..b5fa9512a 100644 --- a/mod/thewire/views/default/object/thewire.php +++ b/mod/thewire/views/default/object/thewire.php @@ -31,9 +31,13 @@ if (isset($vars['entity'])) { </div> <div class="wire_post_options"> + <?php + if(isloggedin()){ + ?> <a href="<?php echo $vars['url']; ?>mod/thewire/add.php?wire_username=<?php echo $vars['entity']->getOwnerEntity()->username; ?>" class="action_button reply small"><?php echo elgg_echo('thewire:reply'); ?></a> <?php - // if the user looking at thewire post can edit, show the delete link + }//close reply if statement + // if the user looking at thewire post can edit, show the delete link if ($vars['entity']->canEdit()) { echo "<div class='delete_button'>" . elgg_view("output/confirmlink",array( 'href' => $vars['url'] . "action/thewire/delete?thewirepost=" . $vars['entity']->getGUID(), @@ -41,7 +45,7 @@ if (isset($vars['entity'])) { 'confirm' => elgg_echo('deleteconfirm'), )) . "</div>"; } - ?> + ?> </div> <div class="wire_post_info"> |