Commit 6c46afac authored by moonray's avatar moonray Committed by greggles

Issue #1234818 by moonray: comment notifications turned off for new users by...

Issue #1234818 by moonray: comment notifications turned off for new users by default: variable misnamed
parent 46265976
......@@ -339,7 +339,6 @@ function comment_notify_variable_registry_get($name) {
$variables['node_notify_default_mailtext'] = AUTHOR_MAILTEXT;
$variables['default_registered_mailalert'] = COMMENT_NOTIFY_DISABLED;
$variables['node_notify_default_mailalert'] = 0;
$variables['comment_notify_default_registered_mailalert'] = COMMENT_NOTIFY_DISABLED;
$variables['watcher_subject'] = '[site:name] :: new comment on [comment:node:title]';
$variables['comment_notify_default_mailtext'] = DEFAULT_MAILTEXT;
$variables['node_types'] = array('article' => 'article');
......
......@@ -351,7 +351,7 @@ function comment_notify_form_alter(&$form, &$form_state, $form_id) {
$form['comment_notify_settings']['comment_notify'] = array(
'#type' => 'select',
'#title' => t('Receive comment follow-up notification e-mails'),
'#default_value' => isset($comment_notify) ? array($comment_notify) : array(comment_notify_variable_registry_get('comment_notify_default_registered_mailalert')),
'#default_value' => isset($comment_notify) ? array($comment_notify) : array(comment_notify_variable_registry_get('default_registered_mailalert')),
'#options' => $available_options,
'#description' => t("Check this box to receive e-mail notification for follow-up comments to comments you posted. You can later disable this on a post-by-post basis... so if you leave this to YES, you can still disable follow-up notifications for comments you don't want follow-up mails anymore - i.e. for very popular posts.")
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment