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
|
@ -545,7 +545,7 @@ function password_reset($hash, $salt, $resetkey, $email, $dbh=NULL) {
|
|||
$error = __('Invalid e-mail and reset key combination.');
|
||||
return $error;
|
||||
} else {
|
||||
header('Location: passreset.php?step=complete');
|
||||
header('Location: ' . get_uri('/passreset/') . '?step=complete');
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
@ -817,7 +817,7 @@ function voter_list($voteid, $dbh=NULL) {
|
|||
$result = db_query($q, $dbh);
|
||||
if ($result) {
|
||||
while ($row = mysql_fetch_assoc($result)) {
|
||||
$whovoted.= '<a href="account.php?Action=AccountInfo&ID='.$row['UserID'].'">'.$row['Username'].'</a> ';
|
||||
$whovoted.= '<a href="' . get_uri('/accounts/') . '?Action=AccountInfo&ID='.$row['UserID'].'">'.$row['Username'].'</a> ';
|
||||
}
|
||||
}
|
||||
return $whovoted;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue