summaryrefslogtreecommitdiff
path: root/includes/controller/event_config_controller.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/controller/event_config_controller.php')
-rw-r--r--includes/controller/event_config_controller.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/includes/controller/event_config_controller.php b/includes/controller/event_config_controller.php
index 7d11ecb4..aa328802 100644
--- a/includes/controller/event_config_controller.php
+++ b/includes/controller/event_config_controller.php
@@ -16,7 +16,7 @@ function event_config_edit_controller()
global $privileges;
if (!in_array('admin_event_config', $privileges)) {
- redirect('?');
+ redirect(page_link_to('/'));
}
$request = request();
@@ -101,9 +101,14 @@ function event_config_edit_controller()
);
engelsystem_log(
- 'Changed event config: $event_name, $event_welcome_msg, '
- . date('Y-m-d', $buildup_start_date) . ', ' . date('Y-m-d', $event_start_date) . ', '
- . date('Y-m-d', $event_end_date) . ', ' . date('Y-m-d', $teardown_end_date)
+ sprintf('Changed event config: %s, %s, %s, %s, %s, %s',
+ $event_name,
+ $event_welcome_msg,
+ date('Y-m-d', $buildup_start_date),
+ date('Y-m-d', $event_start_date),
+ date('Y-m-d', $event_end_date),
+ date('Y-m-d', $teardown_end_date)
+ )
);
success(_('Settings saved.'));
redirect(page_link_to('admin_event_config'));