]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Ticket #1954 fixed
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 9 Mar 2010 11:33:16 +0000 (11:33 +0000)
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 9 Mar 2010 11:33:16 +0000 (11:33 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@5319 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/thewire/views/default/object/thewire.php

index 738ab96ba0bddc46a2a9e760c998ea6a3f75cfb2..b5fa9512a40d965cd752e0659d979acbf918cadb 100644 (file)
@@ -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">