Commit ea26bde9 authored by Michael Hasselbring's avatar Michael Hasselbring

allowed ? in asset source

parent b8e534a1
...@@ -122,9 +122,11 @@ class Asset_Container { ...@@ -122,9 +122,11 @@ class Asset_Container {
*/ */
public function add($name, $source, $dependencies = array(), $attributes = array()) public function add($name, $source, $dependencies = array(), $attributes = array())
{ {
$type = (File::extension($source) == 'css') ? 'style' : 'script'; $source = explode('?', $source);
$type = (File::extension($source[0]) == 'css') ? 'style' : 'script';
return call_user_func(array($this, $type), $name, $source, $dependencies, $attributes); return call_user_func(array($this, $type), $name, $source[0], $dependencies, $attributes);
} }
/** /**
......
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