mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-31 07:09:34 +02:00
[core] Rename item getter/setter
getDatas -> getItems setDatas -> setItems Note: Bridge->setDatas actually sets data, where Bridge->getItems only returns items (this is why Bridge->setDatas was not changed)
This commit is contained in:
parent
1e9b5c8611
commit
a84016bcb6
9 changed files with 14 additions and 15 deletions
|
@ -17,7 +17,7 @@ class MrssFormat extends FormatAbstract{
|
|||
$uri = $this->xml_encode(!empty($extraInfos['uri']) ? $extraInfos['uri'] : 'https://github.com/sebsauvage/rss-bridge');
|
||||
|
||||
$items = '';
|
||||
foreach($this->getDatas() as $data){
|
||||
foreach($this->getItems() as $data){
|
||||
$itemAuthor = isset($data['author']) ? $this->xml_encode($data['author']) : '';
|
||||
$itemTitle = strip_tags(isset($data['title']) ? $this->xml_encode($data['title']) : '');
|
||||
$itemUri = isset($data['uri']) ? $this->xml_encode($data['uri']) : '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue