From 91c3f94ff9df319b548cd332566198b72f8124cd Mon Sep 17 00:00:00 2001 From: jchu Date: Sun, 26 Dec 2004 20:12:46 +0000 Subject: commited neotuli's patch for source links --- web/lib/pkgfuncs.inc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'web/lib') diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index 7a45bc2..2a6fda2 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -293,7 +293,17 @@ function package_details($id=0) { print ""; $sources = package_sources($row["ID"]); # $sources[0] = 'src'; while (list($k, $src) = each($sources)) { - print "".$src."
\n"; + $parsed_url = parse_url($src); + if ($parsed_url['scheme']) + { + //It is an external source + print "".$src."
\n"; + } + else + { + //It is presumably an internal source + print "".$src."
\n"; + } } print "\n"; print ""; -- cgit v1.2.3-70-g09d2