[*] classes : new module architecture

This commit is contained in:
rMalie committed 2012-01-31 16:57:19 +00:00
1 parent 62f105ae6e
commit 4f7b3d4550
71 files changed
+815 -622

No files matched your search

+4 -2
View File
@@ -218,7 +218,7 @@ class Blocknewsletter extends Module
// return $this->error = $this->l('E-mail address already registered');
$email = pSQL($_POST['email']);
if (true || !$this->isRegistered($register_status))
if (!$this->isRegistered($register_status))
{
if (Configuration::get('NW_VERIFICATION_EMAIL'))
{
@@ -451,7 +451,9 @@ class Blocknewsletter extends Module
*/
protected function sendVerificationEmail($email, $token)
{
$verif_url = Context::getContext()->link->getModuleLink('blocknewsletter', 'verification').'&token='.$token;
$verif_url = Context::getContext()->link->getModuleLink('blocknewsletter', 'verification', array(
'token' => $token,
));
return Mail::Send($this->context->language->id, 'newsletter_verif', Mail::l('Email verification', $this->context->language->id), array('{verif_url}' => $verif_url), $email, null, null, null, null, null, dirname(__FILE__).'/mails/');
}