Skip to content

Commit

Permalink
fix bug download css from remoute
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Feb 11, 2016
1 parent dd949f2 commit 00bdd8d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 5 additions & 4 deletions AssetsAutoCompressComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ protected function _processingJsFiles($files = [])
{
if (Url::isRelative($fileCode))
{
$resultContent[] = trim($this->fileGetContents( Url::to(\Yii::getAlias('@web' . $fileCode), true) ));
$resultContent[] = trim($this->fileGetContents( Url::to(\Yii::getAlias('@web' . $fileCode), true) )) . "\n;";;
} else
{
if ($this->jsFileRemouteCompile)
Expand Down Expand Up @@ -378,16 +378,17 @@ protected function _processingCssFiles($files = [])

foreach ($files as $fileCode => $fileTag)
{
if (!Url::isRelative($fileCode))
if (Url::isRelative($fileCode))
{
$resultFiles[$fileCode] = $fileTag;

} else
{
if ($this->cssFileRemouteCompile)
if (!$this->cssFileRemouteCompile)
{
$resultFiles[$fileCode] = $fileTag;
}
}

}

$publicUrl = $publicUrl . "?v=" . filemtime($rootUrl);
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
CHANGELOG
==============

1.1.1.pre
-----------------
* fix bug download css from remoute

1.1
-----------------
* Removed unnecessary settings preloader
Expand Down

0 comments on commit 00bdd8d

Please sign in to comment.