Merge pull request #50 from mikelbring/develop

Allow ? in Asset source
This commit is contained in:
Taylor Otwell 2011-08-11 19:48:07 -07:00
commit a0c7db34fc
1 changed files with 3 additions and 1 deletions

View File

@ -122,7 +122,9 @@ public function __construct($name)
*/
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);
}