From 6e9bf0a0e32054ecf9bf6688624d88b56b8ed4e6 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 25 Jul 2011 12:37:10 -0700 Subject: [PATCH] URL::to_asset should use Request::is_secure to determine if asset link should use HTTPS. --- system/url.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/url.php b/system/url.php index 0755ba56..9bf47dd5 100644 --- a/system/url.php +++ b/system/url.php @@ -54,7 +54,7 @@ public static function to_secure($url = '') */ public static function to_asset($url = '') { - return static::to($url, false, true); + return static::to($url, Request::is_secure(), true); } /**