mod/gc_mobile_api/models/test.php 1 location
|
@@ 189-192 (lines=4) @@
|
| 186 |
|
$event->object['type'] = 'object'; |
| 187 |
|
|
| 188 |
|
$name = ($object->title) ? $object->title : $object->name; |
| 189 |
|
if (empty(trim($name))) { |
| 190 |
|
$otherEntity = get_entity($object->container_guid); |
| 191 |
|
$name = ($otherEntity->title) ? $otherEntity->title : $otherEntity->name; |
| 192 |
|
} |
| 193 |
|
$event->object['name'] = $name; |
| 194 |
|
|
| 195 |
|
if (is_callable(array($object, 'getURL'))) { |
mod/gc_mobile_api/models/user.php 1 location
|
@@ 853-856 (lines=4) @@
|
| 850 |
|
$event->object['type'] = 'discussion-add'; |
| 851 |
|
|
| 852 |
|
$name = ($object->title) ? $object->title : $object->name; |
| 853 |
|
if (empty(trim($name))) { |
| 854 |
|
$otherEntity = get_entity($object->container_guid); |
| 855 |
|
$name = ($otherEntity->title) ? $otherEntity->title : $otherEntity->name; |
| 856 |
|
} |
| 857 |
|
$event->object['name'] = $name; |
| 858 |
|
|
| 859 |
|
if (is_callable(array($object, 'getURL'))) { |