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

Replace _ with - in node names.

parent 1e1b4db7
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ function feeds_page() { ...@@ -20,7 +20,7 @@ function feeds_page() {
$title = $importer->config['name']; $title = $importer->config['name'];
} }
elseif (user_access('create '. $importer->config['content_type'] .' content')) { elseif (user_access('create '. $importer->config['content_type'] .' content')) {
$link = 'node/add/'. $importer->config['content_type']; $link = 'node/add/'. str_replace('_', '-', $importer->config['content_type']);
$title = t('!type (!config)', array('!type' => node_get_types('name', $importer->config['content_type']), '!config' => $importer->config['name'])); $title = t('!type (!config)', array('!type' => node_get_types('name', $importer->config['content_type']), '!config' => $importer->config['name']));
} }
$rows[] = array( $rows[] = array(
......
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