fix bug in link_to_asset method.
This commit is contained in:
parent
74b65f74d1
commit
3ccad7de60
|
@ -98,12 +98,11 @@ public static function span($value, $attributes = array())
|
|||
* @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 @@ public static function link_to_secure($url, $title, $attributes = array())
|
|||
*/
|
||||
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>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue