From 8b1e5d05052c85e6ac36a83d79052dd79c024319 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Sun, 26 Nov 2006 02:43:48 +0000 Subject: #97231 by pwolanin. Keep the node type in a property and use it consistently. --- modules/comment/comment.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/comment') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 395a2040e..4b9010563 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -267,7 +267,7 @@ function comment_form_alter($form_id, &$form) { $form['workflow']['comment'] = array( '#type' => 'radios', '#title' => t('Default comment setting'), - '#default_value' => variable_get('comment_'. $form['identity']['type']['#default_value'], COMMENT_NODE_READ_WRITE), + '#default_value' => variable_get('comment_'. $form['#node_type']->type, COMMENT_NODE_READ_WRITE), '#options' => array(t('Disabled'), t('Read only'), t('Read/Write')), '#description' => t('Users with the administer comments permission will be able to override this setting.'), ); -- cgit v1.2.3