diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-06-24 07:32:27 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-06-24 07:32:27 -0400 |
commit | 9edc8c6004d1236a21e03fb1c820a6e749f1ee3b (patch) | |
tree | 3defb2dc56e726c314b4d92d43744faf4d52bd48 /mod/messageboard/views | |
parent | 344e47862b1f39eca19e39a000f97f799cc87a12 (diff) | |
parent | 5e02fd697fd15ae857aa0c2969fd9ea92043a55a (diff) | |
download | elgg-9edc8c6004d1236a21e03fb1c820a6e749f1ee3b.tar.gz elgg-9edc8c6004d1236a21e03fb1c820a6e749f1ee3b.tar.bz2 |
Merge pull request #35 - Fixes #3404, #3490
Diffstat (limited to 'mod/messageboard/views')
-rw-r--r-- | mod/messageboard/views/default/river/object/messageboard/create.php | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/mod/messageboard/views/default/river/object/messageboard/create.php b/mod/messageboard/views/default/river/object/messageboard/create.php index 0268930bf..975598805 100644 --- a/mod/messageboard/views/default/river/object/messageboard/create.php +++ b/mod/messageboard/views/default/river/object/messageboard/create.php @@ -3,22 +3,9 @@ * Messageboard river view */ -$performed_by = $vars['item']->getSubjectEntity(); -$performed_on = $vars['item']->getObjectEntity(); +$messageboard = $vars['item']->getAnnotation(); -$comment = $vars['item']->getAnnotation(); - -$link = elgg_view('output/url', array( - 'href' => $performed_on->getURL(), - 'text' => elgg_echo('messageboard:river:user', array($performed_on->name)), +echo elgg_view('river/item', array( + 'item' => $vars['item'], + 'message' => $messageboard->value, )); - -echo elgg_echo("messageboard:river:added"); -echo " $link "; -echo elgg_echo("messageboard:river:messageboard"); - -if ($comment) { - echo '<div class="elgg-river-content">'; - echo elgg_get_excerpt($comment->value); - echo '</div>'; -} |