Removed version control from Asset class. Attempting to implement better method of doing this soon.

This commit is contained in:
Taylor Otwell 2011-08-15 14:04:27 -05:00
parent 88f3f222c3
commit a7cf737ba6
1 changed files with 1 additions and 5 deletions

View File

@ -90,11 +90,7 @@ public function __construct($name)
*/ */
public function add($name, $source, $dependencies = array(), $attributes = array()) public function add($name, $source, $dependencies = array(), $attributes = array())
{ {
// Since assets may contain timestamps to force a refresh, we will strip them $type = (File::extension($source) == 'css') ? 'style' : 'script';
// off to get the "real" filename of the asset.
$segments = explode('?', $source);
$type = (File::extension($segments[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);
} }