Skip to content

Commit

Permalink
Module upgrade, register new hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Oksydan committed Nov 16, 2024
1 parent 9e3420a commit 151e70a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion is_themecore.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class Is_themecore extends Module
'objectShopUrlAddAfter',
'objectShopUrlUpdateAfter',
'objectShopUrlDeleteAfter',
'actionFrontControllerInitBefore',
];

/**
Expand All @@ -58,7 +59,7 @@ public function __construct()
{
$this->name = 'is_themecore';
$this->tab = 'others';
$this->version = '4.1.1';
$this->version = '4.1.2';
$this->author = 'Igor Stępień';
$this->ps_versions_compliancy = ['min' => '8.0.0', 'max' => _PS_VERSION_];

Expand Down
14 changes: 14 additions & 0 deletions upgrade/upgrade-4-1-2.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

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

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

function upgrade_module_4_1_2($module)
{
return $module->registerHook('actionFrontControllerInitBefore');
}

0 comments on commit 151e70a

Please sign in to comment.