From 3d62d3703b3b7254568f0068976eea56ef80721d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 12 Aug 2010 00:34:25 +0000 Subject: [PATCH] - Patch #629826 by Jody Lynn: theme setting toggles for comments appear when the comment module is disabled. --- modules/system/system.admin.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index ff6a09026e0..08b138469b4 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -486,6 +486,10 @@ function system_theme_settings($form, &$form_state, $key = '') { $disabled['toggle_node_user_picture'] = TRUE; $disabled['toggle_comment_user_picture'] = TRUE; } + if (!module_exists('comment')) { + $disabled['toggle_comment_user_picture'] = TRUE; + $disabled['toggle_comment_user_verification'] = TRUE; + } $form['theme_settings'] = array( '#type' => 'fieldset',