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