Rosanne DiMesio : Fix comment header in Comments Management

Jeremy Newman jnewman at winehq.org
Wed May 24 13:43:26 CDT 2017


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

Author: Rosanne DiMesio <dimesio at earthlink.net>
Date:   Wed May 24 13:17:22 2017 -0500

Fix comment header in Comments Management

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>
Signed-off-by: Jeremy Newman <jnewman at codeweavers.com>

---

 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)
         {




More information about the wine-cvs mailing list