diff options
author | Bot <bot@myigel.name> | 2019-09-08 02:25:49 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2019-12-08 02:12:56 +0100 |
commit | be39c63f46562eea173747d80cd91ac81e0b8e09 (patch) | |
tree | f4148db3009dff0dff99ce779798596f6b82a57b /includes/sys_page.php | |
parent | 72123fcd31b612e35e5967c01faae9dd202756d8 (diff) |
Renamed redirect() to throwRedirect()
Diffstat (limited to 'includes/sys_page.php')
-rw-r--r-- | includes/sys_page.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/sys_page.php b/includes/sys_page.php index c7b3ec74..d00a9b70 100644 --- a/includes/sys_page.php +++ b/includes/sys_page.php @@ -1,6 +1,7 @@ <?php use Carbon\Carbon; +use Engelsystem\Http\Exceptions\HttpTemporaryRedirect; use Engelsystem\ValidationResult; /** @@ -55,10 +56,9 @@ function parse_date($pattern, $value) * * @param string $url */ -function redirect($url) +function throw_redirect($url) { - header('Location: ' . $url, true, 302); - raw_output(''); + throw new HttpTemporaryRedirect($url); } /** |