Fixup Subscribe command prototype.
This commit is contained in:
parent
831f3ef17a
commit
72f1e99bb8
1 changed files with 7 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue