Skip to content

Commit

Permalink
Fixed issue #11405: .css and .js not loading on public pages (on spec…
Browse files Browse the repository at this point in the history
…ific servers)
  • Loading branch information
LouisGac committed Jun 20, 2016
1 parent 1753d17 commit e5268c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/replacements_helper.php
Expand Up @@ -174,7 +174,7 @@ function templatereplace($line, $replacements = array(), &$redata = array(), $de
{
if (file_exists($oTemplate->path .DIRECTORY_SEPARATOR. $sCssFile))
{
Yii::app()->getClientScript()->registerCssFile("{$templateurl}$sCssFile",$sCssFile['media']);
Yii::app()->getClientScript()->registerCssFile("{$templateurl}$sCssFile");
}
}

Expand Down

1 comment on commit e5268c7

@Shnoulle
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LouisGac : if it don't fix the issue : maybe revert it. I think we really need specific css for specific media (in fact print ....).

Please sign in to comment.