Browse Source

fix bug in link_to_asset method.

Taylor Otwell 13 years ago
parent
commit
3ccad7de60
1 changed files with 5 additions and 4 deletions
  1. 5 4
      laravel/html.php

+ 5 - 4
laravel/html.php

@@ -98,12 +98,11 @@ class HTML {
 	 * @param  string  $title
 	 * @param  array   $attributes
 	 * @param  bool    $https
-	 * @param  bool    $asset
 	 * @return string
 	 */
-	public static function link($url, $title, $attributes = array(), $https = false, $asset = false)
+	public static function link($url, $title, $attributes = array(), $https = false)
 	{
-		$url = static::entities(URL::to($url, $https, $asset));
+		$url = static::entities(URL::to($url, $https));
 
 		return '<a href="'.$url.'"'.static::attributes($attributes).'>'.static::entities($title).'</a>';
 	}
@@ -134,7 +133,9 @@ class HTML {
 	 */
 	public static function link_to_asset($url, $title, $attributes = array(), $https = null)
 	{
-		return static::link($url, $title, $attributes, $https, true);
+		$url = static::entities(URL::to_asset($url, $https));
+
+		return '<a href="'.$url.'"'.static::attributes($attributes).'>'.static::entities($title).'</a>';
 	}
 
 	/**