fix: updates_xml_build uses pkg_ prefix in element tag for packages
Platform: moko-platform CI / CI Summary (push) Blocked by required conditions
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 2s
Universal: Cascade Main → Dev / Cascade main → branches (push) Successful in 3s
Generic: Repo Health / Release configuration (push) Successful in 3s
Generic: Repo Health / Scripts governance (push) Successful in 4s
Generic: Repo Health / Repository health (push) Successful in 11s
Platform: moko-platform CI / Gate 1: Code Quality (push) Successful in 45s
Platform: moko-platform CI / Gate 5: Template Integrity (push) Failing after 5s
Platform: moko-platform CI / Gate 4: Governance (push) Successful in 42s
Platform: moko-platform CI / Gate 3: Self-Health Check (push) Failing after 42s
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (push) Failing after 45s
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (push) Failing after 45s
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (push) Failing after 46s
Platform: moko-platform CI / CI Summary (push) Blocked by required conditions
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 2s
Universal: Cascade Main → Dev / Cascade main → branches (push) Successful in 3s
Generic: Repo Health / Release configuration (push) Successful in 3s
Generic: Repo Health / Scripts governance (push) Successful in 4s
Generic: Repo Health / Repository health (push) Successful in 11s
Platform: moko-platform CI / Gate 1: Code Quality (push) Successful in 45s
Platform: moko-platform CI / Gate 5: Template Integrity (push) Failing after 5s
Platform: moko-platform CI / Gate 4: Governance (push) Successful in 42s
Platform: moko-platform CI / Gate 3: Self-Health Check (push) Failing after 42s
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (push) Failing after 45s
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (push) Failing after 45s
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (push) Failing after 46s
Joomla stores packages as pkg_elementname in #__extensions. The element tag in updates.xml must match for the updater to find the extension. The ZIP filename uses the same prefix (already correct), but the XML element tag was using the stripped name. Authored-by: Moko Consulting Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -259,7 +259,10 @@ function buildEntry(
|
||||
$lines[] = ' <update>';
|
||||
$lines[] = " <name>{$extName}</name>";
|
||||
$lines[] = " <description>{$extName} update</description>";
|
||||
$lines[] = " <element>{$extElement}</element>";
|
||||
// Element in updates.xml must match what Joomla stores in #__extensions
|
||||
// For packages: pkg_elementname. For plugins: elementname (folder handles grouping).
|
||||
$dbElement = ($extType === 'package') ? "pkg_{$extElement}" : $extElement;
|
||||
$lines[] = " <element>{$dbElement}</element>";
|
||||
$lines[] = " <type>{$extType}</type>";
|
||||
$lines[] = " <version>{$entryVersion}</version>";
|
||||
if (!empty($clientTag)) $lines[] = $clientTag;
|
||||
|
||||
Reference in New Issue
Block a user