Make account registration work with recent account editing changes

The account editing form requires two different form action URLs
due to the fact that the same template is shared for both account
registration and account editing.

Signed-off-by: canyonknight <canyonknight@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
canyonknight 2012-09-16 15:54:49 -04:00 committed by Lukas Fleischer
parent 98ab6515b4
commit 0afe82f87c

View file

@ -1,4 +1,8 @@
<?php if ($A == "UpdateAccount"): ?>
<form action="<?php echo get_user_uri($U) . 'update/'; ?>" method="post">
<?php else: ?>
<form action="<?php echo get_uri('/register/'); ?>" method="post">
<?php endif; ?>
<fieldset>
<input type="hidden" name="Action" value="<?php echo $A ?>" />
<?php if ($UID): ?>