more oodles of changes.

This commit is contained in:
Matthew Wilson 2006-01-15 18:19:44 +00:00
parent 5473560df4
commit f2cccdff9f
27 changed files with 112 additions and 670 deletions

View file

@ -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});