summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-20 01:34:31 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-20 01:34:31 -0400
commit733a83711161975ca93fb9ab236f6b2bf5ebf9ad (patch)
treedf637499bfc64c4b74d9f37e0e8aeea947d81f01 /actions
parent594811350c67feede35d50f05a9e1311b8c4c036 (diff)
save emailpost flag
darcs-hash:20080720053431-84dde-2a46f89bcb18ecbb2b151f5d86a98fb016c851dd.gz
Diffstat (limited to 'actions')
-rw-r--r--actions/emailsettings.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/actions/emailsettings.php b/actions/emailsettings.php
index d8a7bb6c3..cbc4f644f 100644
--- a/actions/emailsettings.php
+++ b/actions/emailsettings.php
@@ -131,7 +131,8 @@ 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
@@ -141,6 +142,7 @@ class EmailsettingsAction extends SettingsAction {
$original = clone($user);
$user->emailnotifysub = $emailnotifysub;
+ $user->emailpost = $emailpost;
$result = $user->update($original);