diff --git a/cg_template_switcher_changelog.xml b/cg_template_switcher_changelog.xml index ee983da..0675a4d 100644 --- a/cg_template_switcher_changelog.xml +++ b/cg_template_switcher_changelog.xml @@ -1,4 +1,15 @@ + + pkg_cg_template_switcher + package + 2.0.2 + + Update : 29/08/2022 + + + Uninstall error + + pkg_cg_template_switcher package diff --git a/packages/mod_cg_template_switcher_j4.zip b/packages/mod_cg_template_switcher_j4.zip index 395ede0..0203ffc 100644 Binary files a/packages/mod_cg_template_switcher_j4.zip and b/packages/mod_cg_template_switcher_j4.zip differ diff --git a/packages/mod_cg_template_switcher_j4/mod_cg_template_switcher.xml b/packages/mod_cg_template_switcher_j4/mod_cg_template_switcher.xml index 2fcb8b7..088563b 100644 --- a/packages/mod_cg_template_switcher_j4/mod_cg_template_switcher.xml +++ b/packages/mod_cg_template_switcher_j4/mod_cg_template_switcher.xml @@ -7,7 +7,7 @@ http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 pascal.leconte@conseilgouz.com www.conseilgouz.com - 2.0.1 + 2.0.2 CG_XML_DESCRIPTION ConseilGouz\Module\CGTemplateSwitcher script.php diff --git a/packages/mod_cg_template_switcher_j4/mod_cg_template_switcher_changelog.xml b/packages/mod_cg_template_switcher_j4/mod_cg_template_switcher_changelog.xml index a4b507d..07c938f 100644 --- a/packages/mod_cg_template_switcher_j4/mod_cg_template_switcher_changelog.xml +++ b/packages/mod_cg_template_switcher_j4/mod_cg_template_switcher_changelog.xml @@ -1,4 +1,15 @@ + + mod_cg_template_switcher + Module + 2.0.2 + + Update : 29/08/2022 + + + Uninstall package + + mod_cg_template_switcher Module diff --git a/packages/mod_cg_template_switcher_j4/script.php b/packages/mod_cg_template_switcher_j4/script.php index e1a4314..4267444 100644 --- a/packages/mod_cg_template_switcher_j4/script.php +++ b/packages/mod_cg_template_switcher_j4/script.php @@ -1,9 +1,9 @@ CG Template Switcher - October 2021 - CG Template Switcher + August 2022 + cgtemplateswitcher https://www.gnu.org/licenses/gpl-2.0.html GNU/GPL ConseilGouz pascal.leconte@conseilgouz.com www.conseilgouz.com - 2.0.1 + 2.0.2 https://www.conseilgouz.com/ ConseilGouz Package CG Template Switcher diff --git a/script.php b/script.php index 095ea97..d46294e 100644 --- a/script.php +++ b/script.php @@ -1,9 +1,9 @@ dir = __DIR__; } + /** + * + * Function to run when un-installing the component + * @return void + */ + public function uninstall($parent) { + // remove old package path + $f = JPATH_MANIFESTS . '/packages/CG Template Switcher'; + if (!@file_exists($f) || !is_dir($f) || is_link($f)) { + return; + } + Folder::delete($f); + // remove old package xml + $f = JPATH_MANIFESTS . '/packages/pkg_cg_template_switcher.xml'; + if (@is_file($f)) { + File::delete($f); + } + } function preflight($type, $parent) {