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  c51a3c8f7238b2ebecc8db15cd05422a84712289 (commit)
      from  bd2e6d240b849a1ab51992acf7a84f72723c6632 (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=c51a3c8f7238b2ebecc8db15cd05422a84712289

commit c51a3c8f7238b2ebecc8db15cd05422a84712289
Author: Franck Villaume <[email protected]>
Date:   Sun Aug 18 19:05:37 2019 +0200

    use html_e function

diff --git a/src/common/widget/Widget_ProjectInfo.class.php 
b/src/common/widget/Widget_ProjectInfo.class.php
index d7c7cb0..11fdae4 100644
--- a/src/common/widget/Widget_ProjectInfo.class.php
+++ b/src/common/widget/Widget_ProjectInfo.class.php
@@ -65,10 +65,8 @@ class Widget_ProjectInfo extends Widget {
 
                // registration date
                $project_start_date = $project->getStartDate();
-               $result .=(_('Registered')._(': ').
-                               '<span property="doap:created" 
content="'.date('Y-m-d', $project_start_date).'">'.
-                               date(_('Y-m-d H:i'), $project_start_date).
-                               "</span>\n");
+               $result .= html_e('br')._('Registered')._(':').
+                               html_e('span', array('property' => 
'doap:created', 'content' => date('Y-m-d', $project_start_date)), date(_('Y-m-d 
H:i'), $project_start_date));
 
                // Get the activity percentile
                // CB hide stats if desired
@@ -83,12 +81,12 @@ class Widget_ProjectInfo extends Widget {
                        if (!$actv_res) {
                                $actv_res=0;
                        }
-                       $result .= '<br />'.sprintf (_('Activity Ranking: 
<strong>%d</strong>'), $actv_res)."\n";
-                       $result .= '<br />'._('View project').' 
'.util_make_link('/project/stats/?group_id='.$group_id, _('Statistics'));
+                       $result .= html_e('br').sprintf (_('Activity Ranking: 
<strong>%d</strong>'), $actv_res)."\n";
+                       $result .= html_e('br')._('View project').' 
'.util_make_link('/project/stats/?group_id='.$group_id, _('Statistics'));
                        if ( ($project->usesTracker() && 
forge_get_config('use_tracker')) || ($project->usesPM() && 
forge_get_config('use_pm')) ) {
                                $result .= sprintf(_(' or <a 
href="%s">Activity</a>'),util_make_uri('/project/report/?group_id='.$group_id))."\n";
                        }
-                       $result .= '<br />'.sprintf(_('View list of <a 
href="%s">RSS feeds</a> available for this project.'), 
util_make_uri('/export/rss_project.php?group_id='.$group_id)). ' ' . 
html_image('ic/rss.png',16,16,array());
+                       $result .= html_e('br').sprintf(_('View list of <a 
href="%s">RSS feeds</a> available for this project.'), 
util_make_uri('/export/rss_project.php?group_id='.$group_id)). ' ' . 
html_image('ic/rss.png',16,16,array());
                }
 
                if(forge_get_config('use_people')) {

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

Summary of changes:
 src/common/widget/Widget_ProjectInfo.class.php | 12 +++++-------
 1 file changed, 5 insertions(+), 7 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