Added sendNotification flag to WebGUI::Friends::rejectAddRequest. Added setting which supresses friend rejection notices from the inbox.

This commit is contained in:
khenn 2010-05-13 17:15:41 -05:00
parent 6dbd389c86
commit b0c7c1162d
6 changed files with 50 additions and 11 deletions

View file

@ -15,6 +15,7 @@
- fixed #11540: Pending version tags are not completed on approval under certain conditions
- fixed #11566: Group API: group membership cannot be checked without consideration of expiration dates.
- fixed #11567: EMS: Build badge page, ticket tab, pagination
- added: a new inbox setting which allows administrators to choose not to send out friend rejection notices
7.9.4
- We're shipping underscore.js now for its suite of extremely handy utility

View file

@ -34,6 +34,7 @@ my $session = start(); # this line required
# upgrade functions go here
modifySortItems( $session );
fixRequestForApprovalScratch($session);
addRejectNoticeSetting($session);
finish($session); # this line required
@ -46,6 +47,15 @@ finish($session); # this line required
# print "DONE!\n" unless $quiet;
#}
#----------------------------------------------------------------------------
# Adds setting which allows users to set whether or not to send reject notices
sub addRejectNoticeSetting {
my $session = shift;
print "\tAdding reject notice setting... " unless $quiet;
$session->setting->add('sendRejectNotice',1);
print "DONE!\n" unless $quiet;
}
#----------------------------------------------------------------------------
# Describe what our function does
sub fixRequestForApprovalScratch {