} if (!$warning) { $tpl = eZNewsletterTemplateWrapper::templateInit(); $tpl->setVariable('subscriptionList', $subscriptionList); $subscription->sendConfirmation(); $Result = array(); $Result['content'] = $tpl->fetch("design:eznewsletter/register_subscription_info.tpl"); $Result['path'] = array(array('url' => false, 'text' => ezi18n('eznewsletter/register_subscription', 'Register subscription'))); return; } } else { if ($http->hasPostVariable('CancelButton')) { $ini = eZINI::instance(); return $Module->redirectTo($ini->variable('SiteSettings', 'DefaultPage')); } } $tpl = eZNewsletterTemplateWrapper::templateInit(); if ($user) { $tpl->setVariable('user', $user); } $tpl->setVariable('firstname', $firstname); $tpl->setVariable('name', $name); $tpl->setVariable('email', $email); $tpl->setVariable('subscriptionList', $subscriptionList); $tpl->setVariable('output_map', eZSubscription::outputFormatNameMap()); if (isset($warning)) { $tpl->setVariable('warning', $warning); } $Result = array(); $Result['content'] = $tpl->fetch("design:eznewsletter/register_subscription.tpl"); $Result['path'] = array(array('url' => false, 'text' => ezi18n('eznewsletter/register_subscription', 'Register subscription')));