Skip to content

Commit

Permalink
Update script.php
Browse files Browse the repository at this point in the history
  • Loading branch information
conseilgouz committed Aug 27, 2023
1 parent 26e9de8 commit 348c59c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions script.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 348c59c

Please sign in to comment.