Skip to content
Snippets Groups Projects
Commit 77bb529f authored by Alex Barth's avatar Alex Barth
Browse files

Fix double usage of the same variable.

parent 336411ad
No related branches found
No related tags found
No related merge requests found
......@@ -16,9 +16,9 @@ class FeedsOPMLParser extends FeedsParser {
*/
public function parse(FeedsSource $source, FeedsFetcherResult $fetcher_result) {
feeds_include_library('opml_parser.inc', 'opml_parser');
$result = opml_parser_parse($fetcher_result->getRaw());
$result = new FeedsParserResult($result['items']);
$result->setTitle($result['title']);
$opml = opml_parser_parse($fetcher_result->getRaw());
$result = new FeedsParserResult($opml['items']);
$result->setTitle($opml['title']);
return $result;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment