summaryrefslogtreecommitdiffstats
path: root/web/template/account_edit_form.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-07-29 14:20:15 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-07-29 14:20:57 +0200
commit97b7e077f17339de2f932c502e54eb5b6700bcde (patch)
tree3f7fbe85dd7ba6543a991fce40d732901ca64a67 /web/template/account_edit_form.php
parent430bf97ca6e56fd56247009fc7780c95e7d38b03 (diff)
downloadaur-97b7e077f17339de2f932c502e54eb5b6700bcde.tar.gz
aur-97b7e077f17339de2f932c502e54eb5b6700bcde.tar.xz
Do not show deletion link on the registration page
In 7df8dc8 (Add support for deleting user accounts, 2014-07-25), a link to the account deletion page was added to the account edit form. Make sure we only show this link if the user actually wants to edit an account and do not show this link on the account registration page. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/account_edit_form.php')
-rw-r--r--web/template/account_edit_form.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/account_edit_form.php b/web/template/account_edit_form.php
index 37339853..17dd9371 100644
--- a/web/template/account_edit_form.php
+++ b/web/template/account_edit_form.php
@@ -1,8 +1,8 @@
+<?php if ($A == "UpdateAccount"): ?>
<p>
<?= __('Click %shere%s if you want to permanently delete this account.', '<a href="' . get_user_uri($U) . 'delete/' . '">', '</a>') ?>
</p>
-<?php if ($A == "UpdateAccount"): ?>
<form id="edit-profile-form" action="<?= get_user_uri($U) . 'update/'; ?>" method="post">
<?php else: ?>
<form id="edit-profile-form" action="<?= get_uri('/register/'); ?>" method="post">