summaryrefslogtreecommitdiffstats
path: root/web/lib/pkgfuncs.inc
diff options
context:
space:
mode:
authorpjmattal <pjmattal>2005-04-06 04:54:11 +0200
committerpjmattal <pjmattal>2005-04-06 04:54:11 +0200
commit71b5b9e6b7e92fe1f2c0c49f47af1c1255f41e24 (patch)
tree7ecc58341c00433e99bf52f61384c525ebdff8c2 /web/lib/pkgfuncs.inc
parent7fccb8b634118a2f4f92220b194dc74273b15957 (diff)
downloadaur-71b5b9e6b7e92fe1f2c0c49f47af1c1255f41e24.tar.gz
aur-71b5b9e6b7e92fe1f2c0c49f47af1c1255f41e24.tar.xz
many changes in prep for launch
new doc page added changed AUR to community lower-cased unsupported fixed half of the bug with changing categories: categories now can't be changed for packages in community however they can still be changed out from under maintainers by joe users for unsupported packages debugged problem with package details not found when unsupported uploads were with Category 0 (changed default to 19)
Diffstat (limited to 'web/lib/pkgfuncs.inc')
-rw-r--r--web/lib/pkgfuncs.inc13
1 files changed, 9 insertions, 4 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
index a72b5f5a..bef63005 100644
--- a/web/lib/pkgfuncs.inc
+++ b/web/lib/pkgfuncs.inc
@@ -296,11 +296,16 @@ function package_details($id=0) {
print "</tr>\n";
print "<tr>\n";
print " <td colspan='2'><span class='f3'>";
- $edit_cat = "<a href='/pkgedit.php?change_Category=1&ID=";
- $edit_cat .= intval($_REQUEST["ID"])."'>".$row["Category"]."</a>";
- $edit_cat .= " &nbsp;<span class='fix'>(";
- $edit_cat .= __("change category").")</span>";
+ if ($row["Location"] == "unsupported") {
+ $edit_cat = "<a href='/pkgedit.php?change_Category=1&ID=";
+ $edit_cat .= intval($_REQUEST["ID"])."'>".$row["Category"]."</a>";
+ $edit_cat .= " &nbsp;<span class='fix'>(";
+ $edit_cat .= __("change category").")</span>";
+ } else {
+ $edit_cat = $row["Category"];
+ }
print $row["Location"]." :: ".$edit_cat."</span></td>";
+
print "</tr>\n";
print "<tr>\n";
print " <td colspan='2'><span class='f3'>".__("Maintainer").": ";