From 348c59c7237815e37c2441babd018e8c41b00867 Mon Sep 17 00:00:00 2001 From: pmleconte Date: Sun, 27 Aug 2023 14:56:41 +0200 Subject: [PATCH] Update script.php --- script.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/script.php b/script.php index b6e0cca..a00e2d8 100644 --- a/script.php +++ b/script.php @@ -125,8 +125,10 @@ private function postinstall_cleanup() { // Joomla 3.10 : uppercas manifest file name $f = JPATH_MANIFESTS . '/packages/pkg_cgtemplateswitcher.xml'; $u = JPATH_MANIFESTS . '/packages/pkg_CGTemplateSwitcher.xml'; - File::copy($f,$u); - + try { + File::copy($f,$u); + } catch (RuntimeException $e) { + } // remove obsolete update sites $db = Factory::getDbo(); $query = $db->getQuery(true)