Upgrade to 3.7.0
This commit is contained in:
5
kirby/src/Http/Url.php
Normal file → Executable file
5
kirby/src/Http/Url.php
Normal file → Executable file
@@ -100,10 +100,9 @@ class Url
|
||||
* Returns the url to the executed script
|
||||
*
|
||||
* @param array $props
|
||||
* @param bool $forwarded Deprecated! Todo: remove in 3.7.0
|
||||
* @return string
|
||||
*/
|
||||
public static function index(array $props = [], bool $forwarded = false): string
|
||||
public static function index(array $props = []): string
|
||||
{
|
||||
return Uri::index($props)->toString();
|
||||
}
|
||||
@@ -186,7 +185,7 @@ class Url
|
||||
*/
|
||||
public static function last(): string
|
||||
{
|
||||
return $_SERVER['HTTP_REFERER'] ?? '';
|
||||
return Environment::getGlobally('HTTP_REFERER', '');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user