better log when changing event config
This commit is contained in:
parent
7627721672
commit
a083c198bb
|
@ -84,7 +84,7 @@ function event_config_edit_controller() {
|
||||||
if ($result === false)
|
if ($result === false)
|
||||||
engelsystem_error("Unable to update event config.");
|
engelsystem_error("Unable to update event config.");
|
||||||
|
|
||||||
engelsystem_log("Changed event config: $event_name, $event_welcome_msg, $buildup_start_date, $event_start_date, $event_end_date, $teardown_end_date");
|
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));
|
||||||
success(_("Settings saved."));
|
success(_("Settings saved."));
|
||||||
redirect(page_link_to('admin_event_config'));
|
redirect(page_link_to('admin_event_config'));
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,9 @@ function logout_title() {
|
||||||
function guest_register() {
|
function guest_register() {
|
||||||
global $tshirt_sizes, $enable_tshirt_size, $default_theme;
|
global $tshirt_sizes, $enable_tshirt_size, $default_theme;
|
||||||
|
|
||||||
|
$event_config = EventConfig();
|
||||||
|
return User_registration_success_view($event_config['event_welcome_msg']);
|
||||||
|
|
||||||
$msg = "";
|
$msg = "";
|
||||||
$nick = "";
|
$nick = "";
|
||||||
$lastname = "";
|
$lastname = "";
|
||||||
|
|
|
@ -19,6 +19,17 @@ $tshirt_sizes = array(
|
||||||
'XL-G' => "XL Girl"
|
'XL-G' => "XL Girl"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Displays the welcome message to the user and shows a login form.
|
||||||
|
*/
|
||||||
|
function User_registration_success_view($event_welcome_message) {
|
||||||
|
$parsedown = new Parsedown();
|
||||||
|
$event_welcome_message = $parsedown->text($event_welcome_message);
|
||||||
|
return page_with_title(_("Welcome to the engelsystem!"), [
|
||||||
|
$event_welcome_message
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gui for deleting user with password field.
|
* Gui for deleting user with password field.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue