Skip to content

Commit

Permalink
Dev: Follow non indexed change for http://git.io/DBo3FQ
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed May 14, 2012
1 parent b216f3e commit 281108a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions application/helpers/replacements_helper.php
Expand Up @@ -127,20 +127,19 @@ function templatereplace($line, $replacements = array(), &$redata = array(), $de
if(stripos ($line,"{TEMPLATECSS}"))
{
global $css_header_includes;
$_templatecss .="<link rel='stylesheet' type='text/css' media='all' href='".Yii::app()->getConfig('generalscripts')."jquery/css/start/jquery-ui.css' />\n"; // Remove it after corrected slider
if (file_exists($templatedir . '/jquery-ui-custom.css'))
{
$_jqueryuicssurl = "{$templateurl}jquery-ui-custom.css";
$_templatecss.= "<link rel='stylesheet' type='text/css' media='all' href='{$_jqueryuicssurl}' />\n";
}
elseif(file_exists($templatedir . '/jquery-ui.css'))
{
$_jqueryuicssurl = "{$templateurl}jquery-ui.css";
$_templatecss.= "<link rel='stylesheet' type='text/css' media='all' href='{$_jqueryuicssurl}' />\n";
}
# else
# { // Review for slider
else
{
# $_jqueryuicssurl =Yii::app()->getConfig('generalscripts')."jquery/css/start/jquery-ui.css";
# }
$_templatecss .="<link rel='stylesheet' type='text/css' media='all' href='".Yii::app()->getConfig('generalscripts')."jquery/css/start/jquery-ui.css' />\n"; // Remove it after corrected slider
$_templatecss.= "<link rel='stylesheet' type='text/css' media='all' href='{$_jqueryuicssurl}' />\n";
}
if(Yii::app()->getConfig("css_admin_includes"))
{
if(!$js_header_includes){$js_header_includes=array();}
Expand Down

2 comments on commit 281108a

@c-schmitz
Copy link
Contributor

Choose a reason for hiding this comment

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

@Shnoulle This completely breaks the template editor. Can you please provide a fix asap?

@c-schmitz
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually this seems to break survey taking, too. :-(

Please sign in to comment.