|
@@ -122,7 +122,9 @@ class Asset_Container {
|
|
|
*/
|
|
|
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);
|
|
|
}
|