summaryrefslogtreecommitdiff
path: root/actions/emailsettings.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-09-17 13:47:41 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-09-17 13:47:41 -0400
commit130ba2888643992943780962dd4efcca3c595735 (patch)
treef1aa8a3b4157a6d61d636ae7f3060ed94d159a1c /actions/emailsettings.php
parent7f8aaf46c8279c120c012d2b479e592bfa9611cf (diff)
newmessage and showmessage
darcs-hash:20080917174741-5ed1f-c090055487bab0df52d25ad6550d3850ef5f7661.gz
Diffstat (limited to 'actions/emailsettings.php')
-rw-r--r--actions/emailsettings.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/actions/emailsettings.php b/actions/emailsettings.php
index c93cbfae0..6e189a909 100644
--- a/actions/emailsettings.php
+++ b/actions/emailsettings.php
@@ -88,6 +88,12 @@ class EmailsettingsAction extends SettingsAction {
common_checkbox('emailnotifysub',
_('Send me notices of new subscriptions through email.'),
$user->emailnotifysub);
+ common_checkbox('emailnotifyfav',
+ _('Send me email when someone adds my notice as a favorite.'),
+ $user->emailnotifyfav);
+ common_checkbox('emailnotifymsg',
+ _('Send me email when someone sends me a private message.'),
+ $user->emailnotifymsg);
common_checkbox('emailpost',
_('I want to post notices by email.'),
$user->emailpost);
@@ -142,6 +148,8 @@ class EmailsettingsAction extends SettingsAction {
function save_preferences() {
$emailnotifysub = $this->boolean('emailnotifysub');
+ $emailnotifyfav = $this->boolean('emailnotifyfav');
+ $emailnotifymsg = $this->boolean('emailnotifymsg');
$emailmicroid = $this->boolean('emailmicroid');
$emailpost = $this->boolean('emailpost');
@@ -154,6 +162,8 @@ class EmailsettingsAction extends SettingsAction {
$original = clone($user);
$user->emailnotifysub = $emailnotifysub;
+ $user->emailnotifyfav = $emailnotifyfav;
+ $user->emailnotifymsg = $emailnotifymsg;
$user->emailmicroid = $emailmicroid;
$user->emailpost = $emailpost;