summaryrefslogtreecommitdiff
path: root/includes/sys_page.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/sys_page.php')
-rw-r--r--includes/sys_page.php6
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);
}
/**