Initial commit: is_themecore out of the box v4.1.3
This commit is contained in:
20
is_themecore/upgrade/upgrade-4.1.0.php
Normal file
20
is_themecore/upgrade/upgrade-4.1.0.php
Normal file
@ -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_0($module)
|
||||
{
|
||||
$success = $module->installPartytown();
|
||||
$success &= Configuration::updateValue(GeneralConfiguration::THEMECORE_LOAD_PARTY_TOWN, false);
|
||||
$success &= Configuration::updateValue(GeneralConfiguration::THEMECORE_DEBUG_PARTY_TOWN, false);
|
||||
|
||||
return $success;
|
||||
}
|
||||
Reference in New Issue
Block a user