Skip to content

Commit 7a650a4

Browse files
committed
Merge pull request #40 from steverice/master
Fixed package XML deployment for root directory targets
2 parents 4ea8993 + dec4886 commit 7a650a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MagentoHackathon/Composer/Magento/PackageXmlParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ protected function getElementPaths(\SimpleXMLElement $element) {
178178
if ($element->children()) {
179179
foreach ($element->children() as $child) {
180180
foreach ($this->getElementPaths($child) as $elementPath) {
181-
$elementPaths[] = $name . '/' . $elementPath;
181+
$elementPaths[] = $name == '.' ? $elementPath : $name . '/' . $elementPath;
182182
}
183183
}
184184
} else {

0 commit comments

Comments
 (0)