Commit 3ccad7de authored by Taylor Otwell's avatar Taylor Otwell

fix bug in link_to_asset method.

parent 74b65f74
......@@ -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>';
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment