Commit 3cd897e5 by Qiang Xue

Fixed asset file registration with extra leading slashes.

parent 60259241
...@@ -139,10 +139,10 @@ class AssetBundle extends Object ...@@ -139,10 +139,10 @@ class AssetBundle extends Object
public function registerAssets($view) public function registerAssets($view)
{ {
foreach ($this->js as $js) { foreach ($this->js as $js) {
$view->registerJsFile($this->baseUrl . '/' . $js, $this->jsOptions); $view->registerJsFile($this->baseUrl . '/' . ltrim($js, '/'), $this->jsOptions);
} }
foreach ($this->css as $css) { foreach ($this->css as $css) {
$view->registerCssFile($this->baseUrl . '/' . $css, $this->cssOptions); $view->registerCssFile($this->baseUrl . '/' . ltrim($css, '/'), $this->cssOptions);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment