From 2af2b7d75abd0cad74988c0b1b21d8e8a8f0d084 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 2 Aug 2009 22:47:46 +0000 Subject: fixed a core Elgg bug dealing with commenting on untitled objects --- views/default/annotation/annotate.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 views/default/annotation/annotate.php (limited to 'views/default/annotation/annotate.php') diff --git a/views/default/annotation/annotate.php b/views/default/annotation/annotate.php new file mode 100644 index 000000000..03dd097d8 --- /dev/null +++ b/views/default/annotation/annotate.php @@ -0,0 +1,17 @@ +subject_guid); // $statement->getSubject(); + $object = get_entity($vars['item']->object_guid); + $url = $object->getURL(); + $subtype = get_subtype_from_id($object->subtype); + $title = $object->title; + if (!$title) + $title = elgg_echo('untitled'); + + $url = "getURL()}\">{$performed_by->name}"; + $string = sprintf(elgg_echo("river:posted:generic"),$url) . " "; + $string .= elgg_echo("{$subtype}:river:annotate") . " getURL() . "\">" . $title . ""; + +?> + + \ No newline at end of file -- cgit v1.2.3