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

Don't load importer using menu loader.

parent cd57a2cc
No related branches found
No related tags found
No related merge requests found
......@@ -252,7 +252,7 @@ function feeds_menu() {
'file' => 'feeds.pages.inc',
'type' => MENU_LOCAL_TASK,
);
$items['import/%feeds_importer/template'] = array(
$items['import/%/template'] = array(
'page callback' => 'feeds_importer_template',
'page arguments' => array(1),
'access callback' => 'feeds_access',
......
......@@ -201,8 +201,8 @@ function feeds_fetcher_callback($importer, $feed_nid = 0) {
/**
* Template generation
*/
function feeds_importer_template($importer) {
$importer = feeds_importer_load($importer);
function feeds_importer_template($importer_id) {
$importer = feeds_importer($importer_id);
if ($importer->parser instanceof FeedsCSVParser) {
return $importer->parser->getTemplate();
}
......
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