From 02b2287c2ec49129583a2fc1c79a3943325faf47 Mon Sep 17 00:00:00 2001 From: pmleconte Date: Wed, 11 Oct 2023 15:26:47 +0200 Subject: [PATCH] 1.0.1 Joomla 5 compatibility --- cgautoarchive.xml | 8 ++++---- cgautoarchive_changelog.xml | 12 ++++++++++++ script.php | 16 +++++++++------- 3 files changed, 25 insertions(+), 11 deletions(-) diff --git a/cgautoarchive.xml b/cgautoarchive.xml index 912a33d..bcdf307 100644 --- a/cgautoarchive.xml +++ b/cgautoarchive.xml @@ -2,12 +2,12 @@ PLG_TASK_CGAUTOARCHIVE conseilgouz - 2022 October - Copyright (C) 2022 ConseilGouz. All rights reserved. - GNU General Public License version 2 or later; see LICENSE.txt + 2023-10-11 + Copyright (C) 2023 ConseilGouz. All rights reserved. + GNU General Public License version 3 or later; see LICENSE.txt pascal.leconte@conseilgouz.com www.conseilgouz.com - 1.0.0 + 1.0.1 PLG_TASK_CGAUTOARCHIVE_DESC cgautoarchive.php diff --git a/cgautoarchive_changelog.xml b/cgautoarchive_changelog.xml index ed4020b..92bccdd 100644 --- a/cgautoarchive_changelog.xml +++ b/cgautoarchive_changelog.xml @@ -1,4 +1,16 @@ + + cgautoarchive + plugin + task + 1.0.1 + + 11/10/2023 + + + Joomla 5.x compatibility + + cgautoarchive plugin diff --git a/script.php b/script.php index 6c64c00..a84abb4 100644 --- a/script.php +++ b/script.php @@ -1,7 +1,7 @@ execute(); } catch (RuntimeException $e) { - JLog::add('unable to enable plugin cg autoarchive', JLog::ERROR, 'jerror'); + Log::add('unable to enable plugin cg autoarchive', Log::ERROR, 'jerror'); } } @@ -120,7 +122,7 @@ private function passMinimumPHPVersion() } private function uninstallInstaller() { - if ( ! JFolder::exists(JPATH_PLUGINS . '/system/' . $this->installerName)) { + if ( ! is_dir(JPATH_PLUGINS . '/system/' . $this->installerName)) { return; } $this->delete([