make event location federate
This commit is contained in:
parent
827dffb94c
commit
55655ba319
@ -157,6 +157,13 @@ class EventPlugin extends MicroAppPlugin
|
|||||||
throw new Exception(_m('No end date for event.'));
|
throw new Exception(_m('No end date for event.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// location is optional
|
||||||
|
$location = null;
|
||||||
|
$location_object = $happeningObj->element->getElementsByTagName('location');
|
||||||
|
if($location_object->length > 0) {
|
||||||
|
$location = $location_object->item(0)->nodeValue;
|
||||||
|
}
|
||||||
|
|
||||||
$notice = null;
|
$notice = null;
|
||||||
|
|
||||||
switch ($activity->verb) {
|
switch ($activity->verb) {
|
||||||
@ -166,7 +173,7 @@ class EventPlugin extends MicroAppPlugin
|
|||||||
$dtstart->item(0)->nodeValue,
|
$dtstart->item(0)->nodeValue,
|
||||||
$dtend->item(0)->nodeValue,
|
$dtend->item(0)->nodeValue,
|
||||||
$happeningObj->title,
|
$happeningObj->title,
|
||||||
null,
|
$location,
|
||||||
$happeningObj->summary,
|
$happeningObj->summary,
|
||||||
null,
|
null,
|
||||||
$options);
|
$options);
|
||||||
@ -243,9 +250,9 @@ class EventPlugin extends MicroAppPlugin
|
|||||||
array('xmlns' => 'urn:ietf:params:xml:ns:xcal'),
|
array('xmlns' => 'urn:ietf:params:xml:ns:xcal'),
|
||||||
common_date_iso8601($happening->end_time));
|
common_date_iso8601($happening->end_time));
|
||||||
|
|
||||||
// FIXME: add location
|
$obj->extra[] = array('location', false, $happening->location);
|
||||||
// FIXME: add URL
|
|
||||||
|
|
||||||
|
// FIXME: add URL
|
||||||
// XXX: probably need other stuff here
|
// XXX: probably need other stuff here
|
||||||
|
|
||||||
return $obj;
|
return $obj;
|
||||||
|
Loading…
Reference in New Issue
Block a user