mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-06 00:04:07 +01:00
This commit is contained in:
@@ -99,7 +99,9 @@ class CClientScript extends CComponent
|
||||
|
||||
if($html!=='')
|
||||
{
|
||||
$output=preg_replace('/(<head\s*>.*?)(<\\/head\s*>)/is','$1'.$html.'$2',$output,1,$count);
|
||||
$output=preg_replace('/(<head\s*>.*?)(<title\s*>)/is','$1'.$html.'$2',$output,1,$count);
|
||||
if(!$count)
|
||||
$output=preg_replace('/(<head\s*>.*?)(<\\/head\s*>)/is','$1'.$html.'$2',$output,1,$count);
|
||||
if(!$count)
|
||||
$output=$html.$output;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user