[PATCH] Show if an Application has a Super Maintainer

Tony Lambregts tony.lambregts at gmail.com
Sat Oct 20 07:39:01 CDT 2007


---

 include/version.php |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

303490e80638ef680a15a00bff309c780e829803
diff --git a/include/version.php b/include/version.php
index 8e2d75a..f4da558 100644
--- a/include/version.php
+++ b/include/version.php
@@ -1425,6 +1425,7 @@ class version {
         $oTableRow->AddTextCell("Vendor");
         $oTableRow->AddTextCell("Application");
         $oTableRow->AddTextCell("Version");
+        $oTableRow->AddTextCell("Has Super Maintainer");
         return $oTableRow;
     }
 
@@ -1534,12 +1535,19 @@ class version {
         $oApp = new application($this->iAppId);
         $oVendor = new vendor($oApp->iVendorId);
 
+        $aSuper_maintainers = Maintainer::getSuperMaintainersUserIdsFromAppId($this->iAppId);
+        if($aSuper_maintainers)
+            $bHasSuperMaintainer = true;
+        else
+            $bHasSuperMaintainer = false;
+
         $oTableRow = new TableRow();
         $oTableRow->AddTextCell(print_date(mysqldatetime_to_unixtimestamp($this->sSubmitTime)));
         $oTableRow->AddTextCell($oUser->objectMakeLink());
         $oTableRow->AddTextCell($oVendor->objectMakeLink());
         $oTableRow->AddTextCell($oApp->objectMakeLink());
         $oTableRow->AddTextCell($this->sName);
+        $oTableRow->AddCell(new TableCell($bHasSuperMaintainer ? "Yes" : "No"));
 
         $oOMTableRow = new OMTableRow($oTableRow);
         return $oOMTableRow;
-- 
1.2.4


--------------040207050308060508000309--



More information about the wine-patches mailing list