From abf907ea6ad4b2895bf2116a2878aac79c51d9eb Mon Sep 17 00:00:00 2001 From: simo Date: Wed, 4 Jan 2006 05:39:41 +0000 Subject: Hardcode urlpaths instead of getting from db Effort to garauntee locations of known files --- web/lib/pkgfuncs.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index 8d77b97..a323984 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -1,5 +1,6 @@ \n"; print " "; if ($row["LocationID"] == 2) { - print "".__("Tarball")." :: ".__("Files")." :: PKGBUILD"; + global $URL_DIR; + $urlpath = $URL_DIR.$row["Name"]."/".$row["Name"]; + print "".__("Tarball")." :: ".__("Files")." :: PKGBUILD"; } elseif ($row["LocationID"] == 3) { print "CVS"; } -- cgit v1.2.3-54-g00ecf