Fixup Subscribe command prototype.

This commit is contained in:
Martin Kamerbeek 2010-10-13 17:57:02 +02:00
parent 831f3ef17a
commit 72f1e99bb8

View file

@ -10,15 +10,16 @@ use base 'WebGUI::MailCommand';
#-----------------------------------------------------------------------------
sub process {
my $self = shift;
my $listName= 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;
}