From a7cf737ba664ae0d12d2825bf169e8dc7e364938 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 15 Aug 2011 14:04:27 -0500 Subject: [PATCH] Removed version control from Asset class. Attempting to implement better method of doing this soon. --- system/asset.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/system/asset.php b/system/asset.php index 0b9ece27..068d91be 100644 --- a/system/asset.php +++ b/system/asset.php @@ -90,11 +90,7 @@ public function __construct($name) */ public function add($name, $source, $dependencies = array(), $attributes = array()) { - // Since assets may contain timestamps to force a refresh, we will strip them - // off to get the "real" filename of the asset. - $segments = explode('?', $source); - - $type = (File::extension($segments[0]) == 'css') ? 'style' : 'script'; + $type = (File::extension($source) == 'css') ? 'style' : 'script'; return call_user_func(array($this, $type), $name, $source, $dependencies, $attributes); }