Skip to content

Commit

Permalink
fix: upgrade fix 😱😱😱
Browse files Browse the repository at this point in the history
  • Loading branch information
Oksydan committed Nov 21, 2024
1 parent 151e70a commit 6654125
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion is_themecore.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __construct()
{
$this->name = 'is_themecore';
$this->tab = 'others';
$this->version = '4.1.2';
$this->version = '4.1.3';
$this->author = 'Igor StΔ™pieΕ„';
$this->ps_versions_compliancy = ['min' => '8.0.0', 'max' => _PS_VERSION_];

Expand Down
File renamed without changes.
File renamed without changes.
20 changes: 20 additions & 0 deletions upgrade/upgrade-4.1.3.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

if (!defined('_PS_VERSION_')) {
exit;
}

if (file_exists(dirname(__FILE__) . '../vendor/autoload.php')) {
require_once dirname(__FILE__) . '../vendor/autoload.php';
}

use Oksydan\Module\IsThemeCore\Form\Settings\GeneralConfiguration;

function upgrade_module_4_1_3($module)
{
$success = $module->registerHook('actionFrontControllerInitBefore');
$success &= Configuration::updateValue(GeneralConfiguration::THEMECORE_LOAD_PARTY_TOWN, false);
$success &= Configuration::updateValue(GeneralConfiguration::THEMECORE_DEBUG_PARTY_TOWN, false);

return $success;
}

0 comments on commit 6654125

Please sign in to comment.