Upgrade to 3.7.0

This commit is contained in:
Bastian Allgeier
2022-06-27 10:02:22 +02:00
parent 0751a6510d
commit 1c22148d7b
674 changed files with 5052 additions and 3082 deletions

5
kirby/src/Http/Url.php Normal file → Executable file
View 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', '');
}
/**