summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/node/content_types.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc
index 86a5c8a95..b5db1e00c 100644
--- a/modules/node/content_types.inc
+++ b/modules/node/content_types.inc
@@ -272,7 +272,7 @@ function node_type_form_submit($form_id, $form_values) {
node_type_reset($type);
}
elseif ($op == t('Delete content type')) {
- return 'admin/content/types/'. $type->old_type .'/delete';
+ return 'admin/content/types/'. str_replace('_', '-', $type->old_type) .'/delete';
}
if (!empty($form_values['old_type'])) {