Skip to content

Commit

Permalink
Revert "Merge branch 'master' of git://github.com/horechek/yii into h…
Browse files Browse the repository at this point in the history
…orechek-master"

This reverts commit c667065, reversing
changes made to 903c0a9.
  • Loading branch information
samdark committed Mar 5, 2013
1 parent 6edf25f commit 1b8c6d4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions framework/web/CClientScript.php
Expand Up @@ -372,10 +372,7 @@ public function renderHead(&$output)
if($html!=='') if($html!=='')
{ {
$count=0; $count=0;
$output=preg_replace('/(<\\/head\s*>)/is','<###head###>$1',$output,1,$count); $output=preg_replace('/(<title\b[^>]*>|<\\/head\s*>)/is','<###head###>$1',$output,1,$count);
if(!$count)
$output=preg_replace('/(<\\/title\s*>)/is','$1<###head###>',$output,1,$count);

if($count) if($count)
$output=str_replace('<###head###>',$html,$output); $output=str_replace('<###head###>',$html,$output);
else else
Expand Down Expand Up @@ -774,4 +771,4 @@ public function addPackage($name,$definition)
$this->packages[$name]=$definition; $this->packages[$name]=$definition;
return $this; return $this;
} }
} }

0 comments on commit 1b8c6d4

Please sign in to comment.