chore: cascade main → dev (8892ade) [skip ci] #73

Merged
jmiller merged 1 commits from main into dev 2026-05-24 04:24:51 +00:00
+12 -3
View File
@@ -131,9 +131,17 @@ if ($platform === 'crm-module') {
}
}
// Joomla: <version> in XML manifests
// Joomla: <version> 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, '<extension')) continue;
$updated = preg_replace(
@@ -143,7 +151,8 @@ if (in_array($platform, ['waas-component', 'joomla'], true)) {
);
if ($updated !== $content) {
file_put_contents($file, $updated);
echo "Joomla: " . basename($file) . "{$version}\n";
$relPath = str_replace($root . '/', '', $file);
echo "Joomla: {$relPath}{$version}\n";
$changed++;
}
}