File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
lib/internal/Magento/Framework/View/Page/Config Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -383,8 +383,11 @@ protected function renderAssetHtml($template, $assets)
383
383
try {
384
384
foreach ($ assets as $ asset ) {
385
385
/** @var $asset \Magento\Framework\View\Asset\File */
386
- if ($ this ->appMode == \Magento \Framework \App \State::MODE_DEVELOPER ) {
387
- if ($ asset ->getSourceUrl () != $ asset ->getUrl ()) {
386
+ // todo will be fixed in MAGETWO-33631
387
+ if ($ this ->appMode != \Magento \Framework \App \State::MODE_PRODUCTION ) {
388
+ if ($ asset instanceof \Magento \Framework \View \Asset \File &&
389
+ $ asset ->getSourceUrl () != $ asset ->getUrl ()
390
+ ) {
388
391
$ attributes = $ this ->addDefaultAttributes ('less ' , []);
389
392
$ groupTemplate = $ this ->getAssetTemplate ('less ' , $ attributes );
390
393
$ result .= sprintf ($ groupTemplate , $ asset ->getUrl ());
You can’t perform that action at this time.
0 commit comments