Commit ce39e484 authored by Taylor Otwell's avatar Taylor Otwell

Merge branch 'master' into develop

parents 829a6292 8871ddff
......@@ -72,7 +72,7 @@ class Cookie {
*/
public static function forget($name)
{
return static::put($key, null, -60);
return static::put($name, null, -60);
}
}
\ No newline at end of file
......@@ -21,9 +21,15 @@ class URL {
$base = Config::get('application.url').'/'.Config::get('application.index');
$base = ($asset) ? str_replace('/'.Config::get('application.index'), '', $base) : $base;
if ($asset and Config::get('application.index') !== '')
{
$base = str_replace('/'.Config::get('application.index'), '', $base);
}
$base = ($https and strpos($base, 'http://') === 0) ? 'https://'.substr($base, 7) : $base;
if ($https and strpos($base, 'http://') === 0)
{
$base = 'https://'.substr($base, 7);
}
return rtrim($base, '/').'/'.ltrim($url, '/');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment