Skip to content

Commit

Permalink
Backport of MAGETWO-52102 for Magento 2.1: [Github] Custom theme stat…
Browse files Browse the repository at this point in the history
…ic content won't deploy without overriding at least one static content file #3754

(cherry picked from commit 6a9744d)
  • Loading branch information
shiftedreality authored and hostep committed Sep 2, 2017
1 parent 6065b1c commit c93b717
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/internal/Magento/Framework/App/Utility/Files.php
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,16 @@ private function accumulateThemeStaticFiles($area, $locale, $filePattern, &$resu
throw new \UnexpectedValueException("Could not parse theme static file '$file'");
}
}

if (!$files) {
$result[] = [
$themeArea,
$themePackage->getVendor() . '/' . $themePackage->getName(),
null,
null,
null,
];
}
}
}
}
Expand Down

0 comments on commit c93b717

Please sign in to comment.