Skip to content

Commit

Permalink
Fixed issue #6652: Additional slahs in template paths in page header
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Oct 5, 2012
1 parent 160177d commit a6f3803
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/helpers/replacements_helper.php
Expand Up @@ -127,11 +127,11 @@ function templatereplace($line, $replacements = array(), &$redata = array(), $de
$css_header_includes=Yii::app()->getConfig("css_header_includes");
if (file_exists($templatedir .DIRECTORY_SEPARATOR.'jquery-ui-custom.css'))
{
$template_jqueryui_css= "<link rel='stylesheet' type='text/css' media='all' href='{$templateurl}/jquery-ui-custom.css' />\n";
$template_jqueryui_css= "<link rel='stylesheet' type='text/css' media='all' href='{$templateurl}jquery-ui-custom.css' />\n";
}
elseif(file_exists($templatedir.DIRECTORY_SEPARATOR.'jquery-ui.css'))
{
$template_jqueryui_css= "<link rel='stylesheet' type='text/css' media='all' href='{$templateurl}/jquery-ui.css' />\n";
$template_jqueryui_css= "<link rel='stylesheet' type='text/css' media='all' href='{$templateurl}jquery-ui.css' />\n";
}
else
{
Expand All @@ -149,7 +149,7 @@ function templatereplace($line, $replacements = array(), &$redata = array(), $de
{
if(file_exists($templatedir.DIRECTORY_SEPARATOR.$cssinclude))
{
$_templatecss .= "<link rel='stylesheet' type='text/css' media='all' href='{$$templateurl}/{$cssinclude}' />\n";
$_templatecss .= "<link rel='stylesheet' type='text/css' media='all' href='{$templateurl}{$cssinclude}' />\n";
}
else
{
Expand Down

0 comments on commit a6f3803

Please sign in to comment.