From ceffb2cc45bf0b8b4ff7f425fc81b77139ea1500 Mon Sep 17 00:00:00 2001 From: pmleconte Date: Thu, 12 Oct 2023 21:00:54 +0200 Subject: [PATCH] 2.2.3 Cleanup obsolete versions after install --- bday.xml | 4 ++-- plg_system_bday_changelog.xml | 12 ++++++++++++ script.php | 28 ++++++++++++++++++++++++++-- 3 files changed, 40 insertions(+), 4 deletions(-) diff --git a/bday.xml b/bday.xml index 008ff6b..1b1f244 100644 --- a/bday.xml +++ b/bday.xml @@ -7,7 +7,7 @@ GNU General Public License version 3 or later; see LICENSE.txt pascal.leconte@conseilgouz.com www.conseilgouz.com - 2.2.2 + 2.2.3 PLG_SYSTEM_BDAY_XML_DESCRIPTION services @@ -145,6 +145,6 @@ - https://www.conseilgouz.com/updates/plg_system_bday_update.xml + https://raw.githubusercontent.com/conseilgouz/updates_github/master/plg_system_bday_update.xml diff --git a/plg_system_bday_changelog.xml b/plg_system_bday_changelog.xml index 17f4f65..03ae027 100644 --- a/plg_system_bday_changelog.xml +++ b/plg_system_bday_changelog.xml @@ -1,4 +1,16 @@ + + plg_system_bday + plugin + system + 2.2.3 + + Update : 12/10/2023 + + + Cleanup obsolete versions after install + + plg_system_bday plugin diff --git a/script.php b/script.php index 88ea914..b2dfc83 100644 --- a/script.php +++ b/script.php @@ -1,7 +1,7 @@ getQuery(true) + ->delete('#__update_sites') + ->where($db->quoteName('location') . ' like "%432473037d.url-de-test.ws/%"'); + $db->setQuery($query); + $db->execute(); + // BDay plugin is now on Github + $query = $db->getQuery(true) + ->delete('#__update_sites') + ->where($db->quoteName('location') . ' like "%conseilgouz.com/updates/%_system_bday%"'); + $db->setQuery($query); + $db->execute(); + // remove obsolete package bday + $query = $db->getQuery(true) + ->delete('#__extensions') + ->where($db->quoteName('type') . ' like "package" AND element like "%BDay%"'); + $db->setQuery($query); + $db->execute(); + $query = $db->getQuery(true) + ->delete('#__extensions') + ->where($db->quoteName('type') . ' like "package" AND name like "%BDay%"'); + $db->setQuery($query); + $db->execute(); + } // Check if Joomla version passes minimum requirement