From a5fd2bb39d8bb655ffcc05decec0bdba3eda7e75 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sat, 20 Jun 2015 12:44:37 +0200 Subject: Let co-maintainers unflag the package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg Signed-off-by: Lukas Fleischer --- web/template/pkg_details.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'web/template') diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index 2f121e7..fb81442 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -18,6 +18,12 @@ $maintainer = username_from_id($row["MaintainerUID"]); $comaintainers = pkgbase_get_comaintainers($base_id); $packager = username_from_id($row["PackagerUID"]); +if ($row["MaintainerUID"] !== NULL) { + $maintainers = array_merge(array($row["MaintainerUID"]), pkgbase_get_comaintainer_uids(array($base_id))); +} else { + $maintainers = NULL; +} + $votes = $row['NumVotes']; # In case of wanting to put a custom message @@ -99,7 +105,7 @@ $sources = pkg_sources($row["ID"]); - +
  • -- cgit v1.2.3-70-g09d2