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/likes/views/default | |
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/likes/views/default')
-rw-r--r-- | mod/likes/views/default/river/annotation/likes/create.php | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/mod/likes/views/default/river/annotation/likes/create.php b/mod/likes/views/default/river/annotation/likes/create.php index 463fe5049..0160bcc0b 100644 --- a/mod/likes/views/default/river/annotation/likes/create.php +++ b/mod/likes/views/default/river/annotation/likes/create.php @@ -5,22 +5,6 @@ * @todo not finished */ -$object = $vars['item']->getObjectEntity(); -$comment = $vars['item']->getAnnotation(); - -$url = $object->getURL(); -$title = $object->title; -if (!$title) { - $title = elgg_echo('untitled'); -} -$params = array( - 'href' => $object->getURL(), - 'text' => $title, -); -$object_link = elgg_view('output/url', $params); - -$type = $object->getType(); -$subtype = $object->getSubtype(); - -$type_string = elgg_echo("river:commented:$type:$subtype"); -echo elgg_echo('river:likes', array($type_string, $object_link)); +echo elgg_view('river/item', array( + 'item' => $vars['item'], +)); |