Skip to content

Commit acacee4

Browse files
authored
Merge pull request #67 from PrestaShop/dev
Release 4.4.1
2 parents 5169fb8 + a7b58b5 commit acacee4

File tree

8 files changed

+41
-3
lines changed

8 files changed

+41
-3
lines changed

config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<module>
33
<name>contactform</name>
44
<displayName><![CDATA[Contact form]]></displayName>
5-
<version><![CDATA[4.4.0]]></version>
5+
<version><![CDATA[4.4.1]]></version>
66
<description><![CDATA[Adds a contact form to the "Contact us" page.]]></description>
77
<author><![CDATA[PrestaShop]]></author>
88
<tab><![CDATA[front_office_features]]></tab>

contactform.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function __construct()
5454
$this->name = 'contactform';
5555
$this->author = 'PrestaShop';
5656
$this->tab = 'front_office_features';
57-
$this->version = '4.4.0';
57+
$this->version = '4.4.1';
5858
$this->bootstrap = true;
5959

6060
parent::__construct();
@@ -76,7 +76,7 @@ public function __construct()
7676
*/
7777
public function install()
7878
{
79-
return parent::install() && $this->registerHook('registerGDPRConsent');
79+
return parent::install() && $this->registerHook(['registerGDPRConsent', 'displayContactContent']);
8080
}
8181

8282
/**

tests/phpstan/phpstan-1.7.2.5.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ parameters:
77
- '#Access to an undefined property Cookie\:\:\$contactFormTokenTTL.#'
88
- '#Call to method assign\(\) on an unknown class Smarty_Data.#'
99
- '#Parameter \#4 \$templateVars of static method MailCore\:\:Send\(\) expects string, array<string, mixed> given.#'
10+
- '#Parameter \#1 \$hook_name of method ModuleCore\:\:registerHook\(\) expects string, array<int, string> given.#'

tests/phpstan/phpstan-1.7.3.4.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ parameters:
77
- '#Access to an undefined property Cookie\:\:\$contactFormTokenTTL.#'
88
- '#Call to method assign\(\) on an unknown class Smarty_Data.#'
99
- '#Parameter \#4 \$templateVars of static method MailCore\:\:send\(\) expects string, array<string, mixed> given.#'
10+
- '#Parameter \#1 \$hook_name of method ModuleCore\:\:registerHook\(\) expects string, array<int, string> given.#'

tests/phpstan/phpstan-1.7.4.4.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ parameters:
66
- '#Access to an undefined property Cookie\:\:\$contactFormToken.#'
77
- '#Access to an undefined property Cookie\:\:\$contactFormTokenTTL.#'
88
- '#Parameter \#4 \$templateVars of static method MailCore\:\:send\(\) expects string, array<string, mixed> given.#'
9+
- '#Parameter \#1 \$hook_name of method ModuleCore\:\:registerHook\(\) expects string, array<int, string> given.#'

tests/phpstan/phpstan-1.7.5.1.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ parameters:
66
- '#Access to an undefined property Cookie\:\:\$contactFormToken.#'
77
- '#Access to an undefined property Cookie\:\:\$contactFormTokenTTL.#'
88
- '#Parameter \#4 \$templateVars of static method MailCore\:\:send\(\) expects string, array<string, mixed> given.#'
9+
- '#Parameter \#1 \$hook_name of method ModuleCore\:\:registerHook\(\) expects string, array<int, string> given.#'

tests/phpstan/phpstan-1.7.6.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ parameters:
66
- '#Access to an undefined property Cookie\:\:\$contactFormToken.#'
77
- '#Access to an undefined property Cookie\:\:\$contactFormTokenTTL.#'
88
- '#Parameter \#4 \$templateVars of static method MailCore\:\:send\(\) expects string, array<string, mixed> given.#'
9+
- '#Parameter \#1 \$hook_name of method ModuleCore\:\:registerHook\(\) expects string, array<int, string> given.#'

upgrade/Upgrade-4.4.1.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
/**
3+
* Copyright since 2007 PrestaShop SA and Contributors
4+
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
5+
*
6+
* NOTICE OF LICENSE
7+
*
8+
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
9+
* that is bundled with this package in the file LICENSE.md.
10+
* It is also available through the world-wide-web at this URL:
11+
* https://opensource.org/licenses/AFL-3.0
12+
* If you did not receive a copy of the license and are unable to
13+
* obtain it through the world-wide-web, please send an email
14+
* to license@prestashop.com so we can send you a copy immediately.
15+
*
16+
* DISCLAIMER
17+
*
18+
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
19+
* versions in the future. If you wish to customize PrestaShop for your
20+
* needs please refer to https://devdocs.prestashop.com/ for more information.
21+
*
22+
* @author PrestaShop SA and Contributors <contact@prestashop.com>
23+
* @copyright Since 2007 PrestaShop SA and Contributors
24+
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
25+
*/
26+
if (!defined('_PS_VERSION_')) {
27+
exit;
28+
}
29+
30+
function upgrade_module_4_4_1($object)
31+
{
32+
return $object->registerHook('displayContactContent');
33+
}

0 commit comments

Comments
 (0)