[dw-free] update @LJ::EVENT_TYPES to include all events
[commit: http://hg.dwscoalition.org/dw-free/rev/f616643e7fdf]
http://bugs.dwscoalition.org/show_bug.cgi?id=3161
Bring @LJ::EVENT_TYPES up to date, and clarify variable assignment.
Patch by
kareila.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3161
Bring @LJ::EVENT_TYPES up to date, and clarify variable assignment.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/ljdefaults.pl
-------------------------------------------------------------------------------- diff -r fb1907d28578 -r f616643e7fdf cgi-bin/ljdefaults.pl --- a/cgi-bin/ljdefaults.pl Wed Nov 10 20:47:23 2010 +0800 +++ b/cgi-bin/ljdefaults.pl Wed Nov 10 09:49:22 2010 -0600 @@ -206,35 +206,38 @@ no strict "vars"; $DEFAULT_EDITOR ||= 'rich'; unless (@LJ::EVENT_TYPES) { - @LJ::EVENT_TYPES = qw ( + @LJ::EVENT_TYPES = map { "LJ::Event::$_" } + qw ( AddedToCircle Birthday + CommunityInvite + CommunityJoinApprove + CommunityJoinReject + CommunityJoinRequest + ImportStatus + InvitedFriendJoins JournalNewComment + JournalNewComment::TopLevel JournalNewEntry + NewUserpic + OfficialPost + PollVote + RemovedFromCircle + SecurityAttributeChanged + UserExpunged + UserMessageRecvd + UserMessageSent UserNewComment - JournalNewComment::TopLevel UserNewEntry - CommunityInvite - CommunityJoinRequest - OfficialPost - InvitedFriendJoins - NewUserpic - PollVote - UserExpunged VgiftApproved + XPostFailure + XPostSuccess ); - foreach my $evt (@LJ::EVENT_TYPES) { - $evt = "LJ::Event::$evt"; - } } unless (@LJ::NOTIFY_TYPES) { - @LJ::NOTIFY_TYPES = ( - 'Email', - ); - foreach my $evt (@LJ::NOTIFY_TYPES) { - $evt = "LJ::NotificationMethod::$evt"; - } + @LJ::NOTIFY_TYPES = map { "LJ::NotificationMethod::$_" } + qw ( Email ); } # random user defaults to a week --------------------------------------------------------------------------------