This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  9f8950f606f162d2b9970aa6602ac506928e9b9a (commit)
      from  fdbc4c10d7f25fa6a02eeb3e76b5ae545268d484 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=9f8950f606f162d2b9970aa6602ac506928e9b9a

commit 9f8950f606f162d2b9970aa6602ac506928e9b9a
Author: Franck Villaume <[email protected]>
Date:   Sun Sep 20 18:57:21 2015 +0200

    widget Project Description: fix display logo when project has no logo

diff --git a/src/common/widget/Widget_ProjectDescription.class.php 
b/src/common/widget/Widget_ProjectDescription.class.php
index f42fe59..6d2fc0c 100644
--- a/src/common/widget/Widget_ProjectDescription.class.php
+++ b/src/common/widget/Widget_ProjectDescription.class.php
@@ -50,8 +50,7 @@ class Widget_ProjectDescription extends Widget {
                        if ($project_description) {
                                // need to use a litteral version for content 
attribute since nl2br is for HTML
                                $result .= "<p>";
-                               if (forge_get_config('use_project_multimedia')) 
{
-
+                               if (forge_get_config('use_project_multimedia') 
&& $project->getLogoImageID()) {
                                        $result .= '<span><img 
src="/dbimage.php?id='.$project->getLogoImageID().'" width="40" height="40" 
/></span>';
                                }
                                $result .= '<span property="doap:description" 
content="'. preg_quote($project_description,'"') .'">'
@@ -61,7 +60,6 @@ class Widget_ProjectDescription extends Widget {
                                $result .= $HTML->information(_('This project 
has not yet submitted a description.'));
                        }
                }
-
                return $result;
        }
 

-----------------------------------------------------------------------

Summary of changes:
 src/common/widget/Widget_ProjectDescription.class.php | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to