more oodles of changes.
This commit is contained in:
parent
5473560df4
commit
f2cccdff9f
27 changed files with 112 additions and 670 deletions
|
|
@ -56,9 +56,9 @@ sub apply {
|
|||
$self = shift;
|
||||
$userId = shift || $self->session->user->profileField("userId");
|
||||
$groupId = $self->{_properties}{subscriptionGroup};
|
||||
|
||||
my $group = WebGUI::Group->new($self->session,$groupId);
|
||||
# Make user part of the right group
|
||||
$group->addUsers([$userId], [$groupId], $self->_getDuration($self->{_properties}{duration}));
|
||||
$group->addUsers([$userId], $self->_getDuration($self->{_properties}{duration}));
|
||||
|
||||
# Add karma
|
||||
WebGUI::User->new($userId)->karma($self->{_properties}{karma}, 'Subscription', 'Added for purchasing subscription '.$self->{_properties}{name});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue