From bcd89fab50d3d104f311585c3fbd75210eb77c77 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Wed, 16 Apr 2014 20:07:34 +0200 Subject: [PATCH] Some improvements: - No need for 'status' in $content because it is always '1' at this point - Fixed form name and submit button to allow isFormSent() call catch it MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- inc/libs/wernis_functions.php | 1 - templates/de/html/guest/guest_wernis_registration_form.tpl | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/inc/libs/wernis_functions.php b/inc/libs/wernis_functions.php index ad801cc17d..b17121d365 100644 --- a/inc/libs/wernis_functions.php +++ b/inc/libs/wernis_functions.php @@ -545,7 +545,6 @@ function doWernisFinishUserRegistration ($challenge, $challengeResponse, $status // Add missing elements $return['mapped_data']['gender'] = NULL; $return['mapped_data']['birthday_selection'] = generateDayMonthYearSelectionBox($return['mapped_data']['birth_day'], $return['mapped_data']['birth_month'], $return['mapped_data']['birth_year']); - $return['mapped_data']['status'] = bigintval(getRequestElement('status')); $return['mapped_data']['challenge'] = getRequestElement('challenge'); $return['mapped_data']['__challenge_response'] = getRequestElement('__challenge_response'); diff --git a/templates/de/html/guest/guest_wernis_registration_form.tpl b/templates/de/html/guest/guest_wernis_registration_form.tpl index 096c5db681..8fed6a763b 100644 --- a/templates/de/html/guest/guest_wernis_registration_form.tpl +++ b/templates/de/html/guest/guest_wernis_registration_form.tpl @@ -1,5 +1,5 @@
-{%form,formMethodPost,formNameRegister=modules.php?module=index&what=register&provider=wernis&status=$content[status]&challenge=$content[challenge]&__challenge_response=$content[__challenge_response]%} +{%form,formMethodPost,formNameWernis_register=modules.php?module=index&what=register&provider=wernis&status=1&challenge=$content[challenge]&__challenge_response=$content[__challenge_response]%} @@ -160,7 +160,7 @@
-- 2.39.2