Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f441a8a51f | |||
| 005eb5cf39 | |||
| 21acb19fed |
@@ -217,12 +217,12 @@ $releaseTagMap = [
|
||||
$primarySuffix = $stabilitySuffixMap[$stability] ?? '';
|
||||
$primaryVersion = $version . $primarySuffix;
|
||||
|
||||
// Build client tag — only needed for templates and modules (site vs admin).
|
||||
// Packages and components don't use client; plugins use folder instead.
|
||||
// Build client tag — Joomla requires <client>site</client> to match updates
|
||||
// to installed extensions. Without it, extension_id=0 in #__updates.
|
||||
$clientTag = '';
|
||||
if (!empty($extClient)) {
|
||||
$clientTag = " <client>{$extClient}</client>";
|
||||
} elseif (in_array($extType, ['template', 'module'])) {
|
||||
} else {
|
||||
$clientTag = ' <client>site</client>';
|
||||
}
|
||||
|
||||
@@ -339,6 +339,8 @@ if (file_exists($dest)) {
|
||||
for ($i = 0; $i <= $stabilityIndex; $i++) {
|
||||
$writtenChannels[] = $stabilityTagMap[$allChannels[$i]] ?? $allChannels[$i];
|
||||
}
|
||||
// Also match legacy/alternate tag names (e.g. 'development' = 'dev')
|
||||
$writtenChannels[] = 'development'; // alias for 'dev'
|
||||
|
||||
foreach ($existingXml->update as $existingUpdate) {
|
||||
$existingTag = '';
|
||||
|
||||
Reference in New Issue
Block a user