Some improvements:
authorRoland Haeder <roland@mxchange.org>
Wed, 16 Apr 2014 18:07:34 +0000 (20:07 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 16 Apr 2014 18:07:34 +0000 (20:07 +0200)
- 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

Signed-off-by: Roland Haeder <roland@mxchange.org>
inc/libs/wernis_functions.php
templates/de/html/guest/guest_wernis_registration_form.tpl

index ad801cc17db010466014effe03b0b6ebe1f7837f..b17121d3652b530a4f5b43e4cd4aa9927fad4a48 100644 (file)
@@ -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');
 
index 096c5db68144d5e6b9724e009ff1807299efa48e..8fed6a763b90cab51d7ab85fb79a28f8de356683 100644 (file)
@@ -1,5 +1,5 @@
 <div align="center">
-{%form,formMethodPost,formNameRegister=modules.php?module=index&amp;what=register&amp;provider=wernis&status=$content[status]&amp;challenge=$content[challenge]&amp;__challenge_response=$content[__challenge_response]%}
+{%form,formMethodPost,formNameWernis_register=modules.php?module=index&amp;what=register&amp;provider=wernis&amp;status=1&amp;challenge=$content[challenge]&amp;__challenge_response=$content[__challenge_response]%}
 <input type="hidden" name="registration_provider" value="register" />
 <table border="0" cellspacing="0" cellpadding="0" width="640" class="table dashed">
        <tr>
        <tr>
                <td colspan="2" class="table_footer">
                        <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
-                       <input type="submit" class="form_submit" name="ok" value="{--SUBMIT_REGISTER--}" />
+                       <input type="submit" class="form_submit" name="wernis_register" value="{--SUBMIT_REGISTER--}" />
                </td>
        </tr>
 </table>