From 45bd1b34f120909c48bc8fefa3dce1be28aeed0f Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 4 Apr 2014 23:06:28 +0200 Subject: 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 --- web/lib/routing.inc.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'web/lib') diff --git a/web/lib/routing.inc.php b/web/lib/routing.inc.php index 206886c..b1e5be2 100644 --- a/web/lib/routing.inc.php +++ b/web/lib/routing.inc.php @@ -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; -- cgit v1.2.3-70-g09d2