mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-14 03:56:53 +01:00
Changed renderHead() method for render clients scripts before </head>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user