Browse Source

passed original to method

Michael Hasselbring 13 years ago
parent
commit
19f14fc66d
1 changed files with 4 additions and 4 deletions
  1. 4 4
      system/asset.php

+ 4 - 4
system/asset.php

@@ -122,11 +122,11 @@ class Asset_Container {
 	 */
 	public function add($name, $source, $dependencies = array(), $attributes = array())
 	{
-		$source = explode('?', $source);
-		
-		$type = (File::extension($source[0]) == 'css') ? 'style' : 'script';
+		$_source = explode('?', $source);
+
+		$type = (File::extension($_source[0]) == 'css') ? 'style' : 'script';
 
-		return call_user_func(array($this, $type), $name, $source[0], $dependencies, $attributes);
+		return call_user_func(array($this, $type), $name, $source, $dependencies, $attributes);
 	}
 
 	/**