summaryrefslogtreecommitdiffstats
path: root/web/lib/pkgfuncs.inc
diff options
context:
space:
mode:
authorpjmattal <pjmattal>2005-06-10 06:52:46 +0200
committerpjmattal <pjmattal>2005-06-10 06:52:46 +0200
commitc7e4f5c7fa8e4ba9e9503f70a3334d33f31b78e1 (patch)
treeb49f8c311d398367269b9e6572e5b280547c7e1f /web/lib/pkgfuncs.inc
parent45e5883a1579ef64071d161a216e7159bfab1daf (diff)
downloadaur-c7e4f5c7fa8e4ba9e9503f70a3334d33f31b78e1.tar.gz
aur-c7e4f5c7fa8e4ba9e9503f70a3334d33f31b78e1.tar.xz
Added Simo's patch for #2579, adding user info page
also modified it slightly so that we no longer look at AURMaintainerUID for maintainer
Diffstat (limited to 'web/lib/pkgfuncs.inc')
-rw-r--r--web/lib/pkgfuncs.inc9
1 files changed, 5 insertions, 4 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
index 451467f9..b0743cc5 100644
--- a/web/lib/pkgfuncs.inc
+++ b/web/lib/pkgfuncs.inc
@@ -309,14 +309,15 @@ function package_details($id=0, $SID="") {
print "</tr>\n";
print "<tr>\n";
print " <td colspan='2'><span class='f3'>".__("Maintainer").": ";
- if ($row["AURMaintainerUID"]) {
- $maintainer = username_from_id($row["AURMaintainerUID"]);
- } elseif ($row["MaintainerUID"]) {
+ if ($row["MaintainerUID"]) {
$maintainer = username_from_id($row["MaintainerUID"]);
+ print "<a href='/account.php?Action=AccountInfo&ID=";
+ print $row["MaintainerUID"] . "'>";
+ print $maintainer . "</a></span></td>";
} else {
$maintainer = "None";
+ print $maintainer . "</span></td>";
}
- print $maintainer . "</span></td>";
print "</tr>\n";
print "<tr>\n";
print " <td colspan='2'><img src='/images/pad.gif' height='15'></td>";