Commit 64351b22 authored by Taylor Otwell's avatar Taylor Otwell

Added HTML::link_to_secure_asset method.

parent 9b46956f
......@@ -71,9 +71,22 @@ class HTML {
* @param array $attributes
* @return string
*/
public static function link_to_asset($url, $title, $attributes = array())
public static function link_to_asset($url, $title, $attributes = array(), $https = false)
{
return static::link($url, $title, $attributes, false, true);
return static::link($url, $title, $attributes, $https, true);
}
/**
* Generate an HTTPS HTML link to an asset.
*
* @param string $url
* @param string $title
* @param array $attributes
* @return string
*/
public static function link_to_secure_asset($url, $title, $attributes = array())
{
return static::link_to_asset($url, $title, $attributes, true);
}
/**
......
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