|
@@ 601-606 (lines=6) @@
|
| 598 |
|
} elseif ($object instanceof ElggGroup) { |
| 599 |
|
$event->object['type'] = 'group'; |
| 600 |
|
$event->object['name'] = gc_explode_translation($object->name, $lang); |
| 601 |
|
} elseif ($object instanceof ElggDiscussionReply) { |
| 602 |
|
$event->object['type'] = 'discussion-reply'; |
| 603 |
|
$original_discussion = get_entity($object->container_guid); |
| 604 |
|
$event->object['name'] = gc_explode_translation($original_discussion->title, $lang); |
| 605 |
|
$event->object['description'] = gc_explode_translation($object->description, $lang); |
| 606 |
|
} elseif ($object instanceof ElggFile) { |
| 607 |
|
$event->object['type'] = 'file'; |
| 608 |
|
$event->object['name'] = gc_explode_translation($object->title, $lang); |
| 609 |
|
$event->object['description'] = gc_explode_translation($object->description, $lang); |
|
@@ 857-862 (lines=6) @@
|
| 854 |
|
if (is_callable(array($original_discussion, 'getURL'))) { |
| 855 |
|
$event->object['url'] = $original_discussion->getURL(); |
| 856 |
|
} |
| 857 |
|
} elseif ($object instanceof ElggFile) { |
| 858 |
|
$event->object['type'] = 'file'; |
| 859 |
|
$event->object['name'] = gc_explode_translation($object->title, $lang); |
| 860 |
|
$event->object['description'] = gc_explode_translation($object->description, $lang); |
| 861 |
|
$event->object['url'] = $object->getURL(); |
| 862 |
|
} elseif ($object instanceof ElggObject) { |
| 863 |
|
$subtype = $object->getSubtype(); |
| 864 |
|
$event->object['type'] = $subtype; |
| 865 |
|
|