Generated URLs default to use the current protocol (http or https)

Signed-off-by: Phill Sparks <phill@bulbstudios.com>
This commit is contained in:
Phill Sparks
2012-05-30 13:14:16 +01:00
parent d21713f35f
commit 6151886860
6 changed files with 16 additions and 17 deletions

View File

@@ -323,7 +323,7 @@ function head($array)
* @param bool $https
* @return string
*/
function url($url = '', $https = false)
function url($url = '', $https = null)
{
return Laravel\URL::to($url, $https);
}
@@ -335,7 +335,7 @@ function url($url = '', $https = false)
* @param bool $https
* @return string
*/
function asset($url, $https = false)
function asset($url, $https = null)
{
return Laravel\URL::to_asset($url, $https);
}