diff --git a/libraries/opml_parser.inc b/libraries/opml_parser.inc index de0f9df2c7545bef1aa71ccf838372c82ec41ed0..b3d1989b70708cc7618e7ae0349b1a0b09713df9 100644 --- a/libraries/opml_parser.inc +++ b/libraries/opml_parser.inc @@ -16,8 +16,7 @@ */ function opml_parser_parse($raw) { $feeds = $items = array(); - $xml = new SimpleXMLElement($raw); - + $xml = @ new SimpleXMLElement($raw); $feeds['title'] = (string)current($xml->xpath('//head/title')); // @todo Make xpath case insensitive. diff --git a/plugins/FeedsFileFetcher.inc b/plugins/FeedsFileFetcher.inc index 85507dce6de5440d8731b911c9bc32f2f34937b7..951fa81c957d12375608d937052ca184c58a7b6d 100644 --- a/plugins/FeedsFileFetcher.inc +++ b/plugins/FeedsFileFetcher.inc @@ -16,8 +16,6 @@ class FeedsFileFetcher extends FeedsFetcher { */ public function fetch(FeedsSource $source) { $source_config = $source->getConfigFor($this); - // Just return path to file, contents can be read easily with - // file_get_contents($file_path); return new FeedsImportBatch(NULL, $source_config['source']); }