Revert "Merge branch 'master' of git://github.com/horechek/yii into horechek-master"

This reverts commit c6670657b7, reversing
changes made to 903c0a991f.
This commit is contained in:
Alexander Makarov
2013-03-06 03:59:36 +04:00
parent 6edf25f97d
commit 1b8c6d4d17

View File

@@ -372,10 +372,7 @@ class CClientScript extends CApplicationComponent
if($html!=='')
{
$count=0;
$output=preg_replace('/(<\\/head\s*>)/is','<###head###>$1',$output,1,$count);
if(!$count)
$output=preg_replace('/(<\\/title\s*>)/is','$1<###head###>',$output,1,$count);
$output=preg_replace('/(<title\b[^>]*>|<\\/head\s*>)/is','<###head###>$1',$output,1,$count);
if($count)
$output=str_replace('<###head###>',$html,$output);
else
@@ -774,4 +771,4 @@ class CClientScript extends CApplicationComponent
$this->packages[$name]=$definition;
return $this;
}
}
}