Browse Source

URL::to_asset should use Request::is_secure to determine if asset link should use HTTPS.

Taylor Otwell 13 years ago
parent
commit
6e9bf0a0e3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      system/url.php

+ 1 - 1
system/url.php

@@ -54,7 +54,7 @@ class URL {
 	 */
 	public static function to_asset($url = '')
 	{
-		return static::to($url, false, true);
+		return static::to($url, Request::is_secure(), true);
 	}
 
 	/**