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:
Lukas Fleischer 2014-04-04 23:06:28 +02:00
parent d35cf67f7b
commit 45bd1b34f1

View file

@ -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() { function get_user_route() {
global $USER_PATH; global $USER_PATH;
return $USER_PATH; return $USER_PATH;