#29801 - Fix for broken Newsletter signup form action url.
[com.zyxware.civiwci.git] / extern / wciwidget.php
index d86822833e02cf746681ff693f8915773d7b0b88..85161266e62199d0067728bc67c26717f12f58c3 100644 (file)
@@ -56,6 +56,9 @@ if (isset($format)) {
 
   $template->assign('wciform', $data);
   $template->assign('cpageId', $data['button_link_to']);
+  if(!empty($data['email_signup_group_id'])) {
+    $template->assign('emailSignupGroupFormURL', getEmailSignupFormUrl());
+  }
 
   if ($data["override"] == '0') {
     $template->template_dir[] = getWciWidgetTemplatePath();