diff options
Diffstat (limited to 'modules/node/node.install')
-rw-r--r-- | modules/node/node.install | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node/node.install b/modules/node/node.install index 22bd55152..c53bdf8c9 100644 --- a/modules/node/node.install +++ b/modules/node/node.install @@ -408,7 +408,7 @@ function node_update_7004() { // Map old preview setting to new values order. $original_preview ? $original_preview = 2 : $original_preview = 1; - node_type_clear(); + drupal_static_reset('_node_types_build'); $type_list = node_type_get_types(); // Apply original settings to all types. @@ -444,7 +444,7 @@ function node_update_7006(&$context) { $ret = array('#finished' => 0); // Get node type info for every invocation. - node_type_clear(); + drupal_static_reset('_node_types_build'); $node_types = node_type_get_types(); if (!isset($context['total'])) { |