diff options
Diffstat (limited to 'actions/emailsettings.php')
-rw-r--r-- | actions/emailsettings.php | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/actions/emailsettings.php b/actions/emailsettings.php index 2173645f7..72bad8519 100644 --- a/actions/emailsettings.php +++ b/actions/emailsettings.php @@ -83,14 +83,11 @@ class EmailsettingsAction extends SettingsAction { } common_element('h2', NULL, _('Preferences')); - + common_checkbox('emailnotifysub', - _('Send me notices of new subscriptions through email.'), - $user->emailnotifysub); - common_checkbox('emailpost', - _('I want to post notices by email.'), - $user->emailpost); - + _('Send me notices of new subscriptions through email.'), + $user->emailnotifysub); + common_submit('save', _('Save')); common_element_end('form'); @@ -131,8 +128,7 @@ class EmailsettingsAction extends SettingsAction { function save_preferences() { $emailnotifysub = $this->boolean('emailnotifysub'); - $emailpost = $this->boolean('emailpost'); - + $user = common_current_user(); assert(!is_null($user)); # should already be checked @@ -142,7 +138,6 @@ class EmailsettingsAction extends SettingsAction { $original = clone($user); $user->emailnotifysub = $emailnotifysub; - $user->emailpost = $emailpost; $result = $user->update($original); |