allowed ? in asset source
This commit is contained in:
parent
b8e534a117
commit
ea26bde9e1
|
@ -122,9 +122,11 @@ public function __construct($name)
|
||||||
*/
|
*/
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue