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

Rename to more accurate .

parent 0221b8f8
No related branches found
No related tags found
No related merge requests found
......@@ -248,16 +248,16 @@ function feeds_nodeapi(&$node, $op, $form) {
try {
$source->addConfig($node->feeds);
// @todo Too many indirections. Clean up.
$feed = $source->importer->fetcher->fetch($source);
$source->importer->parser->parse($feed, $source);
if (!$feed->getTitle()) {
$batch = $source->importer->fetcher->fetch($source);
$source->importer->parser->parse($batch, $source);
if (!$batch->getTitle()) {
form_set_error('title', t('Could not retrieve title from feed.'), 'error');
}
else {
// Keep the title in a static cache and populate $node->title on
// 'presave' as node module looses any changes to $node after
// 'validate'.
$last_title = $feed->getTitle();
$last_title = $batch->getTitle();
}
}
catch (Exception $e) {
......
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