--- block.module.orig	2005-05-26 23:32:46.796713091 +0200
+++ block.module	2005-05-26 23:32:46.797712875 +0200
@@ -279,9 +279,8 @@
         $form = form_group(t('Block-specific settings'), $settings);
       }
 
-      foreach (node_list() as $type) {
-        $content_types[$type] = node_invoke($type, 'node_name');
-      }
+      $content_types = node_name_list();
+
       // Get the block subject for the page title.
       $info = module_invoke($module, 'block', 'list');
       drupal_set_title(t("'%name' block", array('%name' => $info[$delta]['info'])));
