Skip to content

Commit 33c4d86

Browse files
committed
revert redirect changes
1 parent c5a9f1c commit 33c4d86

File tree

4 files changed

+1
-10
lines changed

4 files changed

+1
-10
lines changed

resources/autoload.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
require_once __DIR__ . "/lib/UnityWebhook.php";
2424
require_once __DIR__ . "/lib/UnityRedis.php";
2525
require_once __DIR__ . "/lib/UnityGithub.php";
26-
require_once __DIR__ . "/lib/exceptions/RedirectException.php";
2726

2827
// run init script
2928
require __DIR__ . "/init.php";

resources/lib/UnitySite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public static function redirect($destination)
1010
{
1111
if ($_SERVER["PHP_SELF"] != $destination) {
1212
header("Location: $destination");
13-
throw new RedirectException("Redirect failed, click <a href='$destination'>here</a> to continue.");
13+
die("Redirect failed, click <a href='$destination'>here</a> to continue.");
1414
}
1515
}
1616

resources/lib/exceptions/RedirectException.php

Lines changed: 0 additions & 7 deletions
This file was deleted.

test/phpunit-bootstrap.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
require_once __DIR__ . "/../resources/lib/UnityWebhook.php";
1818
require_once __DIR__ . "/../resources/lib/UnityRedis.php";
1919
require_once __DIR__ . "/../resources/lib/UnityGithub.php";
20-
require_once __DIR__ . "/../resources/lib/exceptions/RedirectException.php";
2120

2221
global $HTTP_HEADER_TEST_INPUTS;
2322
$HTTP_HEADER_TEST_INPUTS = [

0 commit comments

Comments
 (0)