diff options
author | canyonknight <canyonknight@gmail.com> | 2012-09-16 21:54:49 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-09-18 00:59:59 +0200 |
commit | 0afe82f87c2a66dcdc35e7373b7c20b68895ad14 (patch) | |
tree | 20d511492d9581b3b3addf64b9de15289e19cef2 /web/template | |
parent | 98ab6515b48af7705ecad05107a3e3610761fbfc (diff) | |
download | aur-0afe82f87c2a66dcdc35e7373b7c20b68895ad14.tar.gz aur-0afe82f87c2a66dcdc35e7373b7c20b68895ad14.tar.xz |
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>
Diffstat (limited to 'web/template')
-rw-r--r-- | web/template/account_edit_form.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/template/account_edit_form.php b/web/template/account_edit_form.php index 9b5b1d8b..b1cb749d 100644 --- a/web/template/account_edit_form.php +++ b/web/template/account_edit_form.php @@ -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): ?> |