Jeremy Newman : comments disabled when no maintainers

Jeremy Newman jnewman at winehq.org
Mon Nov 21 08:38:09 CST 2016


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

Author: Jeremy Newman <jnewman at codeweavers.com>
Date:   Fri Nov 18 13:44:33 2016 -0600

comments disabled when no maintainers

  We are no longer going to allow comments when the application
  does not have maintainers.

  Based on a patch from: "Andre Hentschel" <nerv at dawncrow.de>

---

 include/version.php | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/include/version.php b/include/version.php
index 1ee7a26..60b14df 100644
--- a/include/version.php
+++ b/include/version.php
@@ -1165,8 +1165,17 @@ EOT;
 
         // Comments Section
         echo "<h2 id=\"viewComments\" class=\"whq-app-title\">Comments</h2>\n";
-        if($this->iVersionId)
-            Comment::view_app_comments($this->iVersionId);
+        if(sizeof($aMaintainers)>0)
+        {
+            if($this->iVersionId)
+                Comment::view_app_comments($this->iVersionId);
+        }
+        else
+        {
+            echo html_note('<i class="fa fa-exclamation-circle"></i> <b>Comments Disabled</b><br><br> '.
+                           'Comments for this application have be disabled becuase there are no maintainers.',
+                           "","","warning");
+        }
     }
 
     public static function lookup_name($versionId)




More information about the wine-cvs mailing list