* @copyright 2007-2020 ETS-Soft * @license Valid for 1 website (or project) for each purchase of license * International Registered Trademark & Property of ETS-Soft */ class Ps_EmailsubscriptionOverride extends Ps_Emailsubscription { public function newsletterRegistration() { if (Module::isEnabled('ets_advancedcaptcha') && ($captcha = Module::getInstanceByName('ets_advancedcaptcha')) && $captcha->hookVal(trim(Tools::getValue('controller')), 'newsletter')) { $captcha->captchaVal($this->_errors); if (is_array($this->_errors)) $this->_errors = implode(',', $this->_errors); } if (!$this->_errors) parent::newsletterRegistration(); } }