Replacing the non standard "title" with "name"

This commit is contained in:
Michael 2018-09-12 18:48:18 +00:00
parent 8c07baf54b
commit 969311cb44

View file

@ -160,7 +160,7 @@ echo $return_code."\n";
$data['published'] = DateTimeFormat::utc($item["created"]."+00:00", DateTimeFormat::ATOM); $data['published'] = DateTimeFormat::utc($item["created"]."+00:00", DateTimeFormat::ATOM);
$data['updated'] = DateTimeFormat::utc($item["edited"]."+00:00", DateTimeFormat::ATOM); $data['updated'] = DateTimeFormat::utc($item["edited"]."+00:00", DateTimeFormat::ATOM);
$data['attributedTo'] = $item['author-link']; $data['attributedTo'] = $item['author-link'];
$data['title'] = BBCode::convert($item['title'], false, 7); $data['name'] = BBCode::convert($item['title'], false, 7);
$data['content'] = BBCode::convert($item['body'], false, 7); $data['content'] = BBCode::convert($item['body'], false, 7);
//$data['summary'] = ''; //$data['summary'] = '';
//$data['sensitive'] = false; //$data['sensitive'] = false;
@ -588,10 +588,10 @@ echo $return_code."\n";
$item['context'] = defaults($object, 'context', null); $item['context'] = defaults($object, 'context', null);
$item['conversation'] = defaults($object, 'conversation', null); $item['conversation'] = defaults($object, 'conversation', null);
$item['sensitive'] = defaults($object, 'sensitive', null); $item['sensitive'] = defaults($object, 'sensitive', null);
$item['name'] = defaults($object, 'name', null); $item['name'] = defaults($object, 'title', null);
$item['title'] = defaults($object, 'title', null); $item['name'] = defaults($object, 'name', $item['name']);
$item['content'] = defaults($object, 'content', null);
$item['summary'] = defaults($object, 'summary', null); $item['summary'] = defaults($object, 'summary', null);
$item['content'] = defaults($object, 'content', null);
$item['location'] = self::processElement($object, 'location', 'name', 'Place'); $item['location'] = self::processElement($object, 'location', 'name', 'Place');
$item['attachments'] = defaults($object, 'attachment', null); $item['attachments'] = defaults($object, 'attachment', null);
$item['tags'] = defaults($object, 'tag', null); $item['tags'] = defaults($object, 'tag', null);