From 64351b22680bb2560ec1f1ca8e68be9095c51843 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 22 Jul 2011 11:22:02 -0700 Subject: [PATCH] Added HTML::link_to_secure_asset method. --- system/html.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) 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 @@ public static function link_to_secure($url, $title, $attributes = array()) * @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); } /**