summaryrefslogtreecommitdiff
path: root/includes/controller/event_config_controller.php
diff options
context:
space:
mode:
authorBot <bot@myigel.name>2019-09-08 02:25:49 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2019-12-08 02:12:56 +0100
commitbe39c63f46562eea173747d80cd91ac81e0b8e09 (patch)
treef4148db3009dff0dff99ce779798596f6b82a57b /includes/controller/event_config_controller.php
parent72123fcd31b612e35e5967c01faae9dd202756d8 (diff)
Renamed redirect() to throwRedirect()
Diffstat (limited to 'includes/controller/event_config_controller.php')
-rw-r--r--includes/controller/event_config_controller.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/controller/event_config_controller.php b/includes/controller/event_config_controller.php
index ff68c3ea..55071848 100644
--- a/includes/controller/event_config_controller.php
+++ b/includes/controller/event_config_controller.php
@@ -17,7 +17,7 @@ function event_config_title()
function event_config_edit_controller()
{
if (!auth()->can('admin_event_config')) {
- redirect(page_link_to('/'));
+ throw_redirect(page_link_to('/'));
}
$request = request();
@@ -118,7 +118,7 @@ function event_config_edit_controller()
)
);
success(__('Settings saved.'));
- redirect(page_link_to('admin_event_config'));
+ throw_redirect(page_link_to('admin_event_config'));
}
}