Index: pathauto_node.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/pathauto_node.inc,v
retrieving revision 1.9
diff -u -p -r1.9 pathauto_node.inc
--- pathauto_node.inc	2 Oct 2005 22:37:16 -0000	1.9
+++ pathauto_node.inc	8 Oct 2005 01:00:42 -0000
@@ -59,11 +59,10 @@ function node_pathauto($op) {
       $placeholders = module_invoke_all('pathauto_node', 'placeholders');
       $settings['placeholders'] = array_merge($settings['placeholders'], $placeholders);
 
-      $nodetypes = node_list();
-      foreach ($nodetypes as $ntype) {
-        $displaytype = node_invoke($ntype,'node_name');
+      foreach (node_get_types() as $type => $name) {
+        $displaytype = node_invoke($type,'node_name');
         $fieldlabel = t('Pattern for all '.$displaytype.' paths');
-        $settings['patternitems'][$ntype] = $fieldlabel;
+        $settings['patternitems'][$type] = $fieldlabel;
       }
       return array2object($settings);
     default:
@@ -264,4 +263,4 @@ function node_pathauto_page() {
   print theme('page', $output);
 }
 
-?>
\ No newline at end of file
+?>
