Browse Source

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

Taylor Otwell 13 years ago
parent
commit
a7cf737ba6
1 changed files with 1 additions and 5 deletions
  1. 1 5
      system/asset.php

+ 1 - 5
system/asset.php

@@ -90,11 +90,7 @@ class Asset_Container {
 	 */
 	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);
 	}