mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
routing.inc.php: Add get_pkgbase_uri()
This will be used to create links to package base pages later. For now, this just returns a link to the corresponding package page since a package base currently only consists of a single package having the same name as the base itself. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
d35cf67f7b
commit
45bd1b34f1
1 changed files with 4 additions and 0 deletions
|
@ -58,6 +58,10 @@ function get_pkg_uri($pkgname) {
|
|||
}
|
||||
}
|
||||
|
||||
function get_pkgbase_uri($pkgbase_name) {
|
||||
return get_pkg_uri($pkgbase_name);
|
||||
}
|
||||
|
||||
function get_user_route() {
|
||||
global $USER_PATH;
|
||||
return $USER_PATH;
|
||||
|
|
Loading…
Add table
Reference in a new issue