Browse Source

import file class for assets.

Taylor Otwell 13 years ago
parent
commit
59123fdfb0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      system/asset.php

+ 2 - 1
system/asset.php

@@ -1,5 +1,6 @@
 <?php namespace System;
 <?php namespace System;
 
 
+use System\File;
 use System\HTML;
 use System\HTML;
 
 
 class Asset {
 class Asset {
@@ -75,7 +76,7 @@ class Asset_Container {
 	 */
 	 */
 	public function add($name, $source, $dependencies = array(), $attributes = array())
 	public function add($name, $source, $dependencies = array(), $attributes = array())
 	{
 	{
-		return call_user_func(array($this, (\System\File::extension($source) == 'css') ? 'style' : 'script'), $name, $source, $dependencies, $attributes);
+		return call_user_func(array($this, (File::extension($source) == 'css') ? 'style' : 'script'), $name, $source, $dependencies, $attributes);
 	}
 	}
 
 
 	/**
 	/**