Skip to content

Commit

Permalink
Merge pull request #107 from PrestaShop/dev
Browse files Browse the repository at this point in the history
Release version 2.8.1
  • Loading branch information
Hlavtox authored Jan 11, 2024
2 parents 5af0bf4 + 5aff277 commit 9fe6e33
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>ps_emailsubscription</name>
<displayName><![CDATA[E-mail subscription form]]></displayName>
<version><![CDATA[2.8.0]]></version>
<version><![CDATA[2.8.1]]></version>
<description><![CDATA[Adds a block for newsletter subscription.]]></description>
<author><![CDATA[PrestaShop]]></author>
<confirmUninstall><![CDATA[Are you sure that you want to delete all of your contacts?]]></confirmUninstall>
Expand Down
10 changes: 5 additions & 5 deletions ps_emailsubscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function __construct()
$this->confirmUninstall = $this->trans('Are you sure that you want to delete all of your contacts?', [], 'Modules.Emailsubscription.Admin');
$this->ps_versions_compliancy = ['min' => '1.7.1.0', 'max' => _PS_VERSION_];

$this->version = '2.8.0';
$this->version = '2.8.1';
$this->author = 'PrestaShop';
$this->error = false;
$this->valid = false;
Expand Down Expand Up @@ -153,8 +153,8 @@ public function install()
$conditions[(int) $lang['id_lang']] = $this->getConditionFixtures($lang);
}
Configuration::updateValue('NW_CONDITIONS', $conditions, true);
Configuration::updateValue('NW_VERIFICATION_EMAIL', false);
Configuration::updateValue('NW_CONFIRMATION_EMAIL', false);
Configuration::updateValue('NW_VERIFICATION_EMAIL', 0);
Configuration::updateValue('NW_CONFIRMATION_EMAIL', 0);
Configuration::updateValue('NW_VOUCHER_CODE', '');

return Db::getInstance()->execute('
Expand Down Expand Up @@ -206,8 +206,8 @@ public function uninstallPrestaShop16Module()
public function getContent()
{
if (Tools::isSubmit('submitUpdate')) {
Configuration::updateValue('NW_CONFIRMATION_EMAIL', (bool) Tools::getValue('NW_CONFIRMATION_EMAIL'));
Configuration::updateValue('NW_VERIFICATION_EMAIL', (bool) Tools::getValue('NW_VERIFICATION_EMAIL'));
Configuration::updateValue('NW_CONFIRMATION_EMAIL', (int) Tools::getValue('NW_CONFIRMATION_EMAIL'));
Configuration::updateValue('NW_VERIFICATION_EMAIL', (int) Tools::getValue('NW_VERIFICATION_EMAIL'));

$conditions = [];
$languages = Language::getLanguages(false);
Expand Down
2 changes: 1 addition & 1 deletion upgrade/install-1-1.php → upgrade/install-1.1.0.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
exit;
}

function upgrade_module_1_1($module)
function upgrade_module_1_1_0($module)
{
$hook_to_remove_id = Hook::getIdByName('displayAfterBodyOpeningTag');
if ($hook_to_remove_id) {
Expand Down
File renamed without changes.

0 comments on commit 9fe6e33

Please sign in to comment.