summaryrefslogtreecommitdiffstats
path: root/web/template/tu_details.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-07-14 01:24:59 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-15 22:44:51 +0200
commit2425f963f8ad45292c217914b5fee1ed18104c26 (patch)
tree9dd5bcd1d4c95d9bbe8a5d96cd9f6610bd665787 /web/template/tu_details.php
parenta03c684ecd51327f9c6921a6e0001d82e3223799 (diff)
downloadaur-2425f963f8ad45292c217914b5fee1ed18104c26.tar.gz
aur-2425f963f8ad45292c217914b5fee1ed18104c26.tar.xz
Use virtual path feature for links
Use virtual paths in links (e.g. link to "/packages/" instead of "/packages.php" etc.) if the virtual path feature is enabled. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/tu_details.php')
-rw-r--r--web/template/tu_details.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/template/tu_details.php b/web/template/tu_details.php
index 38015e1e..3ec05ad7 100644
--- a/web/template/tu_details.php
+++ b/web/template/tu_details.php
@@ -11,7 +11,7 @@
<?php echo __("User") ?>:
<b>
<?php if (!empty($row['User'])): ?>
- <a href="packages.php?K=<?php print $row['User'] ?>&amp;SeB=m"><?php print $row['User'] ?></a>
+ <a href="<?php echo get_uri('/packages/'); ?>?K=<?php print $row['User'] ?>&amp;SeB=m"><?php print $row['User'] ?></a>
<?php else: ?>
N/A
<?php endif; ?>
@@ -61,7 +61,7 @@
<div class="box">
<?php if ($canvote == 1): ?>
- <form action="tu.php?id=<?php print $row['ID'] ?>" method="post">
+ <form action="<?php echo get_uri('/tu/'); ?>?id=<?php print $row['ID'] ?>" method="post">
<fieldset>
<input type="submit" class="button" name="voteYes" value="<?php print __("Yes") ?>" />
<input type="submit" class="button" name="voteNo" value="<?php print __("No") ?>" />