Changed renderHead() method for render clients scripts before </head>

This commit is contained in:
horechek
2012-12-18 13:05:30 +02:00
parent 34052364b9
commit 68244754cb

View File

@@ -371,8 +371,8 @@ class CClientScript extends CApplicationComponent
if($html!=='')
{
$count=0;
$output=preg_replace('/(<title\b[^>]*>|<\\/head\s*>)/is','<###head###>$1',$output,1,$count);
$count=0;
$output=preg_replace('/<\\/head\s*>/is','<###head###>$1',$output,1,$count);
if($count)
$output=str_replace('<###head###>',$html,$output);
else