mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-11 02:26:56 +01:00
Revert "Merge branch 'master' of git://github.com/horechek/yii into horechek-master"
This reverts commitc6670657b7, reversing changes made to903c0a991f.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user