--- usernodes.module copy       Tue Sep 26 12:42:42 2006
+++ usernodes.module    Wed Jan  3 12:11:20 2007
@@ -78,11 +78,13 @@
 
   $userid = $theuser->uid;
   global $user;
   foreach ($proflists as $type => $listlength) {
-       $cat = variable_get('usernodes_profilecat_'.$type, 'User Content');
-       (function_exists('flexinode_node_name') && substr($type, 0, 10) == 'flexinode-') ? $typename = flexinode_node_name($type) : $typename = $type;
+    $cat = variable_get('usernodes_profilecat_'.$type, 'User Content');
+    $typename = node_get_name($type);
     if (variable_get('usernodes_profaddlink_'.$type, 'User Content') && !_usernodes_at_max($type, $userid) && ($userid == $user->uid or user_access('administer users'))) {
       $newlink = "<div>".l(t('[add '.$typename.']'), 'node/add/'.$type)."</div>";
     } else {
@@ -238,4 +240,4 @@
     $items[] = l($node->title, 'node/'. $node->nid, $node->comment_count ? array('title' => format_plural($node->comment_count, '1 comment', '%count comments')) : '') . ($showedit && (node_access("update", $node, $userid)) ? "&nbsp;".l(t("[edit]"), 'node/'.$node->nid.'/edit') : '') . ($showedit && (node_access("delete", $node, $userid)) ? "&nbsp;".l(t("[delete]"), 'node/'.$node->nid.'/delete') : '');
   }
   if ($items) return theme('node_list', $items, $title);
-}
\ No newline at end of file
+}

