summaryrefslogtreecommitdiff
path: root/actions/emailsettings.php
diff options
context:
space:
mode:
authormikec <mikec@mikenz.geek.nz>2008-07-21 08:00:36 -0400
committermikec <mikec@mikenz.geek.nz>2008-07-21 08:00:36 -0400
commit334c652e80e9bb9e53116963ec3f794588be4439 (patch)
treedffb674f2e3da0365a7514f563d4667069628b66 /actions/emailsettings.php
parentfbf2a58ac3beafea0a0e4031037b52e737bdd384 (diff)
Publish MicroIDs for email and mpp on profile and notice pages.
darcs-hash:20080721120036-edabd-838335c0e23c80a657d353955b25b52a9a8624b2.gz
Diffstat (limited to 'actions/emailsettings.php')
-rw-r--r--actions/emailsettings.php15
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);