Skip to content

Commit

Permalink
Remove the configuration "Automatically check for module updates"
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Dec 2, 2022
1 parent 6e1968a commit 5a403f6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions install-dev/data/xml/configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,6 @@
<configuration id="PS_THEME_V11" name="PS_THEME_V11">
<value>0</value>
</configuration>
<configuration id="PRESTASTORE_LIVE" name="PRESTASTORE_LIVE">
<value>1</value>
</configuration>
<configuration id="PS_TIN_ACTIVE" name="PS_TIN_ACTIVE">
<value>0</value>
</configuration>
Expand Down
3 changes: 0 additions & 3 deletions src/Adapter/GeneralConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ public function __construct(Configuration $configuration, Cookie $cookie)
public function getConfiguration()
{
return [
'check_modules_update' => $this->configuration->getBoolean('PRESTASTORE_LIVE'),
'check_ip_address' => $this->configuration->getBoolean('PS_COOKIE_CHECKIP'),
'front_cookie_lifetime' => $this->configuration->get('PS_COOKIE_LIFETIME_FO'),
'back_cookie_lifetime' => $this->configuration->get('PS_COOKIE_LIFETIME_BO'),
Expand All @@ -83,7 +82,6 @@ public function updateConfiguration(array $configuration)
'parameters' => [],
];
} else {
$this->configuration->set('PRESTASTORE_LIVE', (bool) $configuration['check_modules_update']);
$this->configuration->set('PS_COOKIE_CHECKIP', (bool) $configuration['check_ip_address']);
$this->configuration->set('PS_COOKIE_LIFETIME_FO', (int) $configuration['front_cookie_lifetime']);
$this->configuration->set('PS_COOKIE_LIFETIME_BO', (int) $configuration['back_cookie_lifetime']);
Expand All @@ -103,7 +101,6 @@ public function updateConfiguration(array $configuration)
public function validateConfiguration(array $configuration)
{
$isValid = isset(
$configuration['check_modules_update'],
$configuration['check_ip_address'],
$configuration['front_cookie_lifetime'],
$configuration['back_cookie_lifetime']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ class GeneralType extends TranslatorAwareType
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('check_modules_update', SwitchType::class, [
'label' => $this->trans('Automatically check for module updates', 'Admin.Advparameters.Feature'),
'help' => $this->trans('Choose a stability level for the modules downloaded from PrestaShop Addons Marketplace. All zips pushed on the marketplace are in stable state unless stated otherwise.', 'Admin.Advparameters.Help'),
])
->add('check_ip_address', SwitchType::class, [
'label' => $this->trans('Check the cookie\'s IP address', 'Admin.Advparameters.Feature'),
'help' => $this->trans('Check the IP address of the cookie in order to prevent your cookie from being stolen.', 'Admin.Advparameters.Help'),
Expand Down

0 comments on commit 5a403f6

Please sign in to comment.