diff --git a/cli/version_set_platform.php b/cli/version_set_platform.php index 4752b45..965e15d 100644 --- a/cli/version_set_platform.php +++ b/cli/version_set_platform.php @@ -131,9 +131,17 @@ if ($platform === 'crm-module') { } } -// Joomla: in XML manifests +// Joomla: in XML manifests (top-level + sub-packages) if (in_array($platform, ['waas-component', 'joomla'], true)) { - foreach (glob("{$root}/src/*.xml") ?: glob("{$root}/*.xml") ?: [] as $file) { + $xmlFiles = array_merge( + glob("{$root}/src/*.xml") ?: [], + glob("{$root}/src/packages/*/*.xml") ?: [], + glob("{$root}/*.xml") ?: [] + ); + if (empty($xmlFiles)) { + $xmlFiles = glob("{$root}/*.xml") ?: []; + } + foreach ($xmlFiles as $file) { $content = file_get_contents($file); if (!str_contains($content, '