Skip to content

Commit

Permalink
Merge pull request #49 from atomiix/bump-v2.0.2
Browse files Browse the repository at this point in the history
Bump version to 2.0.2
  • Loading branch information
atomiix authored Feb 16, 2021
2 parents 7bd82de + 66a29f9 commit 96175d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>ps_categorytree</name>
<displayName><![CDATA[Category tree links]]></displayName>
<version><![CDATA[2.0.1]]></version>
<version><![CDATA[2.0.2]]></version>
<description><![CDATA[Adds a block featuring product categories.]]></description>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[front_office_features]]></tab>
Expand Down
5 changes: 3 additions & 2 deletions ps_categorytree.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct()
{
$this->name = 'ps_categorytree';
$this->tab = 'front_office_features';
$this->version = '2.0.1';
$this->version = '2.0.2';
$this->author = 'PrestaShop';

$this->bootstrap = true;
Expand Down Expand Up @@ -76,12 +76,13 @@ public function uninstallPrestaShop16Module()
if ($oldModule) {
// This closure calls the parent class to prevent data to be erased
// It allows the new module to be configured without migration
$parentUninstallClosure = function() {
$parentUninstallClosure = function () {
return parent::uninstall();
};
$parentUninstallClosure = $parentUninstallClosure->bindTo($oldModule, get_class($oldModule));
$parentUninstallClosure();
}

return true;
}

Expand Down

0 comments on commit 96175d3

Please sign in to comment.