aboutsummaryrefslogtreecommitdiff
path: root/mod/likes
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-06-24 07:13:18 -0400
committerCash Costello <cash.costello@gmail.com>2011-06-24 07:13:18 -0400
commita3a03a721f62bcf1426a475a543b0b1fcd322bcf (patch)
tree4e6349bcf673d21e7513381b9acd1f832654fc02 /mod/likes
parent344e47862b1f39eca19e39a000f97f799cc87a12 (diff)
parentcf85a49c7e74133feaec7d52d8f289d22b59a56c (diff)
downloadelgg-a3a03a721f62bcf1426a475a543b0b1fcd322bcf.tar.gz
elgg-a3a03a721f62bcf1426a475a543b0b1fcd322bcf.tar.bz2
Merge branch '3404-river-revamp' of https://github.com/ewinslow/Elgg into ewinslow-3404-river-revamp
Conflicts: languages/en.php
Diffstat (limited to 'mod/likes')
-rw-r--r--mod/likes/views/default/river/annotation/likes/create.php22
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'],
+));