summaryrefslogtreecommitdiffstats
path: root/web/lib/routing.inc.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-04-04 23:06:28 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-04-05 12:21:36 +0200
commit45bd1b34f120909c48bc8fefa3dce1be28aeed0f (patch)
tree7eb98a2841516e3e15ca02e5db7db0fb3a4a28f2 /web/lib/routing.inc.php
parentd35cf67f7ba24a6c8f6c27f6f016b6f28c8e9f9b (diff)
downloadaurweb-45bd1b34f120909c48bc8fefa3dce1be28aeed0f.tar.xz
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>
Diffstat (limited to 'web/lib/routing.inc.php')
-rw-r--r--web/lib/routing.inc.php4
1 files changed, 4 insertions, 0 deletions
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;