[APPDB] Fix comment header in Comments Management

Rosanne DiMesio dimesio at earthlink.net
Wed May 24 13:17:22 CDT 2017


The application name wasn't displaying at all and all comments
were labeled "has maintainer" regardless of maintainership status.

Signed-off-by: Rosanne DiMesio <dimesio at earthlink.net>
---
 include/comment.php | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/include/comment.php b/include/comment.php
index c2c425d..3fb8b94 100644
--- a/include/comment.php
+++ b/include/comment.php
@@ -249,14 +249,15 @@ class Comment {
     private function output_comment($bShowAppName = false, $bShowForm = true)
     {
         // by line
-        $sBy = " by <i>".forum_lookup_user($this->oOwner->iUserId)."</i> on <i>".$this->sDateCreated."</i>\n";
+        $sBy = " by <i>".forum_lookup_user($this->oOwner->iUserId)."</i> on <i>".$this->sDateCreated."</i><br>\n";
+       
         if ($bShowAppName)
         {
             $oVersion = new version($this->iVersionId);
-            $sBy .= " Application: ".version::fullNameLink($this->iVersionId).
-                    " (".$oVersion->bHasMaintainer ? 'has maintainer' : 'no maintainers'.")\n";
-        }
-
+            $sBy .= "Application: ".version::fullNameLink($this->iVersionId);
+            $sBy .= ($oVersion->bHasMaintainer ? ' (has maintainer)' : ' (no maintainers)');   
+        }          
+ 
         $sFooter = "";
         if ($bShowForm)
         {
-- 
2.12.0




More information about the wine-patches mailing list