Fixup Subscribe command prototype.

This commit is contained in:
Martin Kamerbeek 2010-10-13 17:57:02 +02:00
parent ec4834090d
commit 781f05f4f0

View file

@ -9,16 +9,17 @@ use base 'WebGUI::MailCommand';
#-----------------------------------------------------------------------------
sub process {
my $self = shift;
my $listName= shift;
my $session = $self->session;
my $log = $session->log;
my $self = shift;
my $listName = shift;
my $fromAddress = shift;
my $session = $self->session;
my $log = $session->log;
my $asset = WebGUI::AssetAspect::Subscriber::findAssetByListName( $session, $listName );
my $asset = WebGUI::AssetAspect::Subscriber->getAssetByListName( $session, $listName );
die "Invalid list name [$listName]" unless $asset;
$asset->subscribeThroughEmail( $fromAddress );
$asset->subscribeAnonymous( $fromAddress );
return;
}