Tony Lambregts : Show if an Application has a Super Maintainer

Chris Morgan cmorgan at winehq.org
Sat Oct 20 13:32:36 CDT 2007


Module: appdb
Branch: master
Commit: b074048c57b9da424e37701d16a4f973f682a975
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=b074048c57b9da424e37701d16a4f973f682a975

Author: Tony Lambregts <tony.lambregts at gmail.com>
Date:   Sat Oct 20 06:39:01 2007 -0600

Show if an Application has a Super Maintainer

---

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

diff --git a/include/version.php b/include/version.php
index 1fdf04c..0f91e7e 100644
--- a/include/version.php
+++ b/include/version.php
@@ -1427,6 +1427,7 @@ class version {
         $oTableRow->AddTextCell("Vendor");
         $oTableRow->AddTextCell("Application");
         $oTableRow->AddTextCell("Version");
+        $oTableRow->AddTextCell("Has Super Maintainer");
         return $oTableRow;
     }
 
@@ -1536,12 +1537,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;




More information about the wine-cvs mailing list