Commit c6bc2b52 authored by Thomas Löffler's avatar Thomas Löffler

Add information about distribution images into extensions.xml file

parent 2cb47c1b
Pipeline #3792 passed with stages
in 5 minutes and 20 seconds
......@@ -431,6 +431,11 @@ class tx_ter_helper
$versionObj->appendChild(new DOMElement('state', $this->xmlentities($extensionVersionArr['state'])));
$versionObj->appendChild(new DOMElement('reviewstate', intval($extensionVersionArr['reviewstate'])));
$versionObj->appendChild(new DOMElement('category', $this->xmlentities($extensionVersionArr['category'])));
if ($extensionsAndVersionsArr['category'] === 'distribution') {
$prefixPathToDistributionFiles = 'fileadmin/' . $extensionKey[0] . '/' . $extensionKey[1] . '/' . $extensionKey . '_' . $versionNumber . '_';
$versionObj->appendChild(new DOMElement('distributionImage', $this->xmlentities($prefixPathToDistributionFiles . 'Distribution.png')));
$versionObj->appendChild(new DOMElement('distributionImageWelcome', $this->xmlentities($prefixPathToDistributionFiles . 'DistributionWelcome.png')));
}
$versionObj->appendChild(
new DOMElement(
'downloadcounter',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment