diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-22 00:44:17 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-22 00:44:17 +0000 |
commit | 5fdb5b33324fc6b8ceaa388ff73ae620d95f42a9 (patch) | |
tree | 5222e9f47b3d3f7f21785047f3700fac6a02840a | |
parent | 489ef6e9ba4faeb1bf4e343a867c4208f0ffc9a6 (diff) | |
download | elgg-5fdb5b33324fc6b8ceaa388ff73ae620d95f42a9.tar.gz elgg-5fdb5b33324fc6b8ceaa388ff73ae620d95f42a9.tar.bz2 |
Dry'ed up forms/comments/add a bit
git-svn-id: http://code.elgg.org/elgg/trunk@8399 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | views/default/forms/comments/add.php | 13 |
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 |