mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-17 07:51:12 +08:00
Fixed test break.
This commit is contained in:
@ -146,16 +146,16 @@ class AssetBundle extends Object
|
|||||||
{
|
{
|
||||||
foreach ($this->js as $js) {
|
foreach ($this->js as $js) {
|
||||||
if (strpos($js, '/') !== 0 && strpos($js, '://') === false) {
|
if (strpos($js, '/') !== 0 && strpos($js, '://') === false) {
|
||||||
$view->registerJsFile($this->baseUrl . '/' . $js, $this->jsOptions);
|
$view->registerJsFile($this->baseUrl . '/' . $js, [], $this->jsOptions);
|
||||||
} else {
|
} else {
|
||||||
$view->registerJsFile($js, $this->jsOptions);
|
$view->registerJsFile($js, [], $this->jsOptions);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach ($this->css as $css) {
|
foreach ($this->css as $css) {
|
||||||
if (strpos($css, '/') !== 0 && strpos($css, '://') === false) {
|
if (strpos($css, '/') !== 0 && strpos($css, '://') === false) {
|
||||||
$view->registerCssFile($this->baseUrl . '/' . $css, $this->cssOptions);
|
$view->registerCssFile($this->baseUrl . '/' . $css, [], $this->cssOptions);
|
||||||
} else {
|
} else {
|
||||||
$view->registerCssFile($css, $this->cssOptions);
|
$view->registerCssFile($css, [], $this->cssOptions);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user