From f299158fbb2e54a9616cf96c901e626fadb833c0 Mon Sep 17 00:00:00 2001 From: Martin Kamerbeek Date: Fri, 21 May 2010 18:40:21 +0200 Subject: [PATCH] Add workflow activity --- sbin/install_newsletter.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sbin/install_newsletter.pl b/sbin/install_newsletter.pl index 9999e6c..5425b3b 100644 --- a/sbin/install_newsletter.pl +++ b/sbin/install_newsletter.pl @@ -165,7 +165,14 @@ sub addPluginsToConfigFile { insert_after_string 'WebGUI::Content::Shop', 'WebGUI::Content::NewsletterManager', @handlers; $session->config->set( 'contentHandlers', \@handlers ); } + + my @workflows = @{ $session->config->get('workflowActivities/None') }; + if ( !grep { $_ eq 'WebGUI::Workflow::Activity::SendQueuedMailings' } @workflows ) { + push @workflows, 'WebGUI::Workflow::Activity::SendQueuedMailings'; + $session->config->set( 'workflowActivities/None', \@workflows ); + } + print "Done.\n"; }