aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/default/forms/comments/add.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/views/default/forms/comments/add.php b/views/default/forms/comments/add.php
index 48b8124b6..62b98cf61 100644
--- a/views/default/forms/comments/add.php
+++ b/views/default/forms/comments/add.php
@@ -14,10 +14,6 @@ if (isset($vars['entity']) && elgg_is_logged_in()) {
if ($inline) {
echo elgg_view('input/text', array('name' => 'generic_comment'));
- echo elgg_view('input/hidden', array(
- 'name' => 'entity_guid',
- 'value' => $vars['entity']->getGUID()
- ));
echo elgg_view('input/submit', array('value' => elgg_echo('comment')));
} else {
?>
@@ -26,10 +22,11 @@ if (isset($vars['entity']) && elgg_is_logged_in()) {
<?php echo elgg_view('input/longtext', array('name' => 'generic_comment')); ?>
</div>
<?php
- echo elgg_view('input/hidden', array(
- 'name' => 'entity_guid',
- 'value' => $vars['entity']->getGUID()
- ));
echo elgg_view('input/submit', array('value' => elgg_echo("generic_comments:post")));
}
+
+ echo elgg_view('input/hidden', array(
+ 'name' => 'entity_guid',
+ 'value' => $vars['entity']->getGUID()
+ ));
} \ No newline at end of file