diff --git a/system/html.php b/system/html.php index b568efc5..a24b0ee2 100644 --- a/system/html.php +++ b/system/html.php @@ -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); } /**