Added processOutput parameter to CController::renderPartial.

This commit is contained in:
qiang.xue
2008-10-24 19:14:06 +00:00
parent 405d5b8d23
commit 9addeefd86
2 changed files with 13 additions and 3 deletions

View File

@@ -100,7 +100,11 @@ class CClientScript extends CComponent
$output=preg_replace('/(<head\s*>.*?)(<\\/head\s*>)/is','$1'.$html.'$2',$output,1);
if($html2!=='')
$output=preg_replace('/(<\\/body\s*>.*?<\/html\s*>)/is',$html2.'$1',$output,1);
{
$output=preg_replace('/(<\\/body\s*>.*?<\/html\s*>)/is',$html2.'$1',$output,1,$count);
if(!$count)
$output.=$html2;
}
return $output;
}