passed original to method
This commit is contained in:
parent
ea26bde9e1
commit
19f14fc66d
|
@ -122,11 +122,11 @@ public function __construct($name)
|
||||||
*/
|
*/
|
||||||
public function add($name, $source, $dependencies = array(), $attributes = array())
|
public function add($name, $source, $dependencies = array(), $attributes = array())
|
||||||
{
|
{
|
||||||
$source = explode('?', $source);
|
$_source = explode('?', $source);
|
||||||
|
|
||||||
$type = (File::extension($source[0]) == 'css') ? 'style' : 'script';
|
|
||||||
|
|
||||||
return call_user_func(array($this, $type), $name, $source[0], $dependencies, $attributes);
|
$type = (File::extension($_source[0]) == 'css') ? 'style' : 'script';
|
||||||
|
|
||||||
|
return call_user_func(array($this, $type), $name, $source, $dependencies, $attributes);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue