- Patch #361277 by Razorraser: node_get_type() isn't anymore.

merge-requests/26/head
Dries Buytaert 2009-06-05 09:24:37 +00:00
parent 5e19045690
commit a892004663
1 changed files with 2 additions and 2 deletions

View File

@ -416,10 +416,10 @@ function node_update_7004() {
// Map old preview setting to new values order.
$original_preview ? $original_preview = 2 : $original_preview = 1;
$type_list = node_get_types('types');
$type_list = node_type_get_types();
// Apply original settings to all types.
foreach ($type_list as $type) {
foreach ($type_list as $type => $object) {
variable_set('teaser_length_' . $type, $original_length);
variable_set('node_preview_' . $type, $original_preview);
}