From df2053893d645299ea01cc7dc14024a81c60741e Mon Sep 17 00:00:00 2001 From: pmaziere Date: Sat, 17 Sep 2016 21:47:40 +0200 Subject: [PATCH] Updated FeedExpander (markdown) --- FeedExpander.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FeedExpander.md b/FeedExpander.md index a675f89..f5df086 100644 --- a/FeedExpander.md +++ b/FeedExpander.md @@ -18,14 +18,14 @@ Find a [template](#template) at the end of this file. This function receives one item from the current feed and should return one **RSS-Bridge** item. The default function does all the work to get the item data from the feed, whether it is RSS 1.0, RSS 2.0 or ATOM 1.0. If you have to redefine this function in your **RSS-Bridge** for whatever reason, -you should call the parent function to initialize the item, then apply the changes that you require. +you should first call the parent function to initialize the item, then apply the changes that you require. **Notice:** The following code sample is just an example. Implementation depends on your requirements! ```PHP protected function parseItem($feedItem){ $item = parent::parseItem($feedItem); - $item['content'] = str_replace('rssbridge','RSS-Bridge',$feedItem->content); + $item['content'] = str_replace('rssbridge','RSS-Bridge',$feedItem->content); return $item; }