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
|
@ -400,7 +400,7 @@ if ($uid):
|
|||
# Entire package creation process is atomic
|
||||
end_atomic_commit($dbh);
|
||||
|
||||
header('Location: packages.php?ID=' . $packageID);
|
||||
header('Location: ' . get_uri('/packages/') . '?ID=' . $packageID);
|
||||
}
|
||||
|
||||
chdir($cwd);
|
||||
|
@ -429,7 +429,7 @@ html_header("Submit");
|
|||
$pkg_categories = pkgCategories();
|
||||
?>
|
||||
|
||||
<form action="pkgsubmit.php" method="post" enctype="multipart/form-data">
|
||||
<form action="<?php echo get_uri('/submit/'); ?>" method="post" enctype="multipart/form-data">
|
||||
<fieldset>
|
||||
<div>
|
||||
<input type="hidden" name="pkgsubmit" value="1" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue