From dce2f7044384c5a94a5c361e8cb715fa00676ae4 Mon Sep 17 00:00:00 2001 From: swiergot Date: Tue, 22 Aug 2006 14:18:28 +0000 Subject: Applied license patch from dsa (closes #4085). --- web/lib/pkgfuncs.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'web/lib') diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index 950de71d..96bb1b79 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -333,6 +333,16 @@ function package_details($id=0, $SID="") { print " ".__("Votes").": "; print $row["NumVotes"] . ""; print "\n"; + + # In case of wanting to put a custom message + # Added by: dsa + $msg = "unknown"; + $license = $row["License"] == "" ? $msg : $row["License"]; + + print "\n"; + print "
License: ".$license; + print "\n"; + print "\n"; print "\n"; print " "; -- cgit v1.2.3-24-g4f1b