summaryrefslogtreecommitdiffstats
path: root/web/template/account_search_results.php
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2012-09-12 17:32:43 -0400
committerLukas Fleischer <archlinux@cryptocrack.de>2012-09-18 00:59:23 +0200
commit5c0de7825d2f1680a2a430410be49696aca35946 (patch)
treea513a3ef3d028c63aa5b6076e35acf3f59d2c29d /web/template/account_search_results.php
parent98b6ba94795b27b098276b30ca9fd61b28b2b110 (diff)
downloadaurweb-5c0de7825d2f1680a2a430410be49696aca35946.tar.xz
Use URL rewriting for user editing page
Allows for easier account editing and saner URLs. Update account editing links to use new URL. Before: AUR_URL/account/?Action=DisplayAccount&U=userfoo After: AUR_URL/account/userfoo/edit Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/account_search_results.php')
-rw-r--r--web/template/account_search_results.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/account_search_results.php b/web/template/account_search_results.php
index 8719928..f67cc6a 100644
--- a/web/template/account_search_results.php
+++ b/web/template/account_search_results.php
@@ -50,7 +50,7 @@ else:
print "&nbsp;";
else:
?>
- <a href="<?php echo get_uri('/account/'); ?>?Action=DisplayAccount&amp;ID=<?php echo $row["ID"] ?>"><?php echo __("Edit") ?></a>
+ <a href="<?php echo get_user_uri($row["Username"]) . "edit/" ?>"><?php echo __("Edit") ?></a>
<?php endif; ?>
</td>
</tr>