Commit a0c7db34 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #50 from mikelbring/develop

Allow ? in Asset source
parents b8e534a1 19f14fc6
...@@ -122,7 +122,9 @@ class Asset_Container { ...@@ -122,7 +122,9 @@ 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, $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