mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-04 15:24:07 +01:00
CClientScript::renderScriptBatch() has been improved to sort html options only if they are specified.
This commit is contained in:
@@ -318,13 +318,13 @@ class CClientScript extends CApplicationComponent
|
||||
$scriptContent = $scriptValue['content'];
|
||||
unset($scriptValue['content']);
|
||||
$scriptHtmlOptions = $scriptValue;
|
||||
ksort($scriptHtmlOptions);
|
||||
}
|
||||
else
|
||||
{
|
||||
$scriptContent = $scriptValue;
|
||||
$scriptHtmlOptions = array();
|
||||
}
|
||||
ksort($scriptHtmlOptions);
|
||||
$key=serialize($scriptHtmlOptions);
|
||||
$scriptBatches[$key]['htmlOptions']=$scriptHtmlOptions;
|
||||
$scriptBatches[$key]['scripts'][]=$scriptContent;
|
||||
|
||||
Reference in New Issue
Block a user