Skip to content

Commit

Permalink
Remove nl_channels and nl_hideChannels from activate module
Browse files Browse the repository at this point in the history
fixes #213
  • Loading branch information
aschempp committed Sep 7, 2020
1 parent 144ca28 commit a62f397
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion dca/tl_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

$GLOBALS['TL_DCA']['tl_module']['palettes']['lostPasswordNotificationCenter'] = str_replace('reg_password', 'nc_notification', $GLOBALS['TL_DCA']['tl_module']['palettes']['lostPassword']);
$GLOBALS['TL_DCA']['tl_module']['palettes']['newsletterSubscribeNotificationCenter'] = '{title_legend},name,headline,type;{config_legend},nl_channels,nl_hideChannels,disableCaptcha;{text_legend},nl_text{notification_legend},nc_notification;{redirect_legend},jumpTo;{template_legend:hide},nl_template;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID';
$GLOBALS['TL_DCA']['tl_module']['palettes']['newsletterActivateNotificationCenter'] = '{title_legend},name,headline,type;{config_legend},nl_channels,nl_hideChannels;{notification_legend},nc_notification;{redirect_legend},jumpTo;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID';
$GLOBALS['TL_DCA']['tl_module']['palettes']['newsletterActivateNotificationCenter'] = '{title_legend},name,headline,type;{notification_legend},nc_notification;{redirect_legend},jumpTo;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID';
$GLOBALS['TL_DCA']['tl_module']['palettes']['newsletterUnsubscribeNotificationCenter'] = '{title_legend},name,headline,type;{config_legend},nl_channels,nl_hideChannels,disableCaptcha;{notification_legend},nc_notification;{redirect_legend},jumpTo;{template_legend:hide},nl_template;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID';

if (version_compare(VERSION, '4.1', '<')) {
Expand Down
7 changes: 0 additions & 7 deletions modules/ModuleNewsletterActivateNotificationCenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ public function generate()
return $objTemplate->parse();
}

$this->nl_channels = deserialize($this->nl_channels);

// Return if there are no channels
if (empty($this->nl_channels) || !\is_array($this->nl_channels)) {
return '';
}

if (!\Input::get('token')) {
return '';
}
Expand Down

0 comments on commit a62f397

Please sign in to comment.