mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 10:04:54 +02:00
[AtomFormat] Use $item->author for author name
$item->name was inteded as the author name and $item->author as the author uri. Bridges use $item->name and $item->author interchangably for author name, so $item->name can be removed. $item->author is now used for the author name!
This commit is contained in:
parent
f3eefab475
commit
8c21769078
2 changed files with 1 additions and 5 deletions
|
@ -28,7 +28,6 @@ class AtomFormat extends FormatAbstract{
|
|||
|
||||
$entries = '';
|
||||
foreach($this->getDatas() as $data){
|
||||
$entryName = is_null($data->name) ? $title : xml_encode($data->name);
|
||||
$entryAuthor = is_null($data->author) ? $uri : xml_encode($data->author);
|
||||
$entryTitle = is_null($data->title) ? '' : xml_encode($data->title);
|
||||
$entryUri = is_null($data->uri) ? '' : xml_encode($data->uri);
|
||||
|
@ -40,8 +39,7 @@ class AtomFormat extends FormatAbstract{
|
|||
|
||||
<entry>
|
||||
<author>
|
||||
<name>{$entryName}</name>
|
||||
<uri>{$entryAuthor}</uri>
|
||||
<name>{$entryAuthor}</name>
|
||||
</author>
|
||||
<title type="html"><![CDATA[{$entryTitle}]]></title>
|
||||
<link rel="alternate" type="text/html" href="{$entryUri}" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue