Permalink
Browse files

Update framework/web/CClientScript.php

Changed renderHead() method for render clients scripts after </title>
  • Loading branch information...
1 parent 6824475 commit 8433a3bf08ea58fe57ea81a2289867b1b2a6f743 @horechek horechek committed Dec 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 framework/web/CClientScript.php
@@ -372,7 +372,7 @@ public function renderHead(&$output)
if($html!=='')
{
$count=0;
- $output=preg_replace('/<\\/head\s*>/is','<###head###>$1',$output,1,$count);
+ $output=preg_replace('/<\\/title\s*>/is','<###head###>$1',$output,1,$count);
if($count)
$output=str_replace('<###head###>',$html,$output);
else
@@ -771,4 +771,4 @@ public function addPackage($name,$definition)
$this->packages[$name]=$definition;
return $this;
}
-}
+}

0 comments on commit 8433a3b

Please sign in to comment.