Browse Source

Fixed test break.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
1edeb7aa5e
  1. 8
      framework/yii/web/AssetBundle.php

8
framework/yii/web/AssetBundle.php

@ -146,16 +146,16 @@ class AssetBundle extends Object
{
foreach ($this->js as $js) {
if (strpos($js, '/') !== 0 && strpos($js, '://') === false) {
$view->registerJsFile($this->baseUrl . '/' . $js, $this->jsOptions);
$view->registerJsFile($this->baseUrl . '/' . $js, [], $this->jsOptions);
} else {
$view->registerJsFile($js, $this->jsOptions);
$view->registerJsFile($js, [], $this->jsOptions);
}
}
foreach ($this->css as $css) {
if (strpos($css, '/') !== 0 && strpos($css, '://') === false) {
$view->registerCssFile($this->baseUrl . '/' . $css, $this->cssOptions);
$view->registerCssFile($this->baseUrl . '/' . $css, [], $this->cssOptions);
} else {
$view->registerCssFile($css, $this->cssOptions);
$view->registerCssFile($css, [], $this->cssOptions);
}
}
}

Loading…
Cancel
Save