mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
a03c684ecd
commit
2425f963f8
24 changed files with 61 additions and 61 deletions
|
@ -11,7 +11,7 @@
|
|||
<?php echo __("User") ?>:
|
||||
<b>
|
||||
<?php if (!empty($row['User'])): ?>
|
||||
<a href="packages.php?K=<?php print $row['User'] ?>&SeB=m"><?php print $row['User'] ?></a>
|
||||
<a href="<?php echo get_uri('/packages/'); ?>?K=<?php print $row['User'] ?>&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") ?>" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue