Index: contributions/modules/feedapi_mapper/feedapi_mapper.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/feedapi_mapper/feedapi_mapper.module,v
retrieving revision 1.1.2.7.2.5
diff -u -p -r1.1.2.7.2.5 feedapi_mapper.module
--- contributions/modules/feedapi_mapper/feedapi_mapper.module	10 Oct 2008 18:14:04 -0000	1.1.2.7.2.5
+++ contributions/modules/feedapi_mapper/feedapi_mapper.module	12 Oct 2008 15:19:25 -0000
@@ -27,9 +27,7 @@ function feedapi_mapper_menu() {
     'access arguments' => array('administer feedapi'),
   );
   foreach (node_get_types() as $type) {
-    $type_name = $type->type;
-    $content_type = content_types($type_name);
-    $type_url_str = $content_type['url_str'];
+    $type_url_str = str_replace('_', '-', $type->type);
     $items['admin/content/node-type/'. $type_url_str .'/map'] = array(
       'title' => 'Map',
       'page callback' => 'feedapi_mapper_page',
@@ -103,7 +101,7 @@ function feedapi_mapper_page($node) {
   if (is_string($node)) {
     $node_type = $node;
     $node = new stdClass();
-    $node->type = $node_type;
+    $node->type = str_replace('-', '_', $node_type);
   }
   if (!feedapi_enabled_type($node->type)) {
     drupal_set_message(t('This content type is not FeedAPI enabled. Enable it if you would like to use the FeedAPI mapper on it.'));
@@ -600,4 +598,4 @@ function feedapi_mapper_theme() {
       'arguments' => array('descriptions'),
     ),
   );
-}
\ No newline at end of file
+}
