[Fusionforge-commits] FusionForge branch 6.1 updated. v6.1beta2-4-gb4eb26e

Franck Villaume nerville at libremir.placard.fr.eu.org
Thu Mar 1 09:41:34 CET 2018


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, 6.1 has been updated
       via  b4eb26e7022562a52001bd9b655a2806d05062d2 (commit)
      from  ff9ae39a46a34b43e97d6419641e26800dda29cd (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=b4eb26e7022562a52001bd9b655a2806d05062d2

commit b4eb26e7022562a52001bd9b655a2806d05062d2
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Thu Mar 1 08:40:46 2018 +0000

    commits widget: fix link to support multiple scmrepo type

diff --git a/src/common/widget/Widget_MyLatestCommits.class.php b/src/common/widget/Widget_MyLatestCommits.class.php
index 8fdc6bb..dcce876 100644
--- a/src/common/widget/Widget_MyLatestCommits.class.php
+++ b/src/common/widget/Widget_MyLatestCommits.class.php
@@ -3,7 +3,7 @@
  * Widget_MyLatestCommits
  *
  * Copyright (c) Xerox Corporation, Codendi 2001-2009 - marc.nazarian at xrce.xerox.com
- * Copyright 2014 Franck Villaume - TrivialDev
+ * Copyright 2014, 2018, Franck Villaume - TrivialDev
  *
  * This file is a part of Fusionforge.
  *
@@ -47,7 +47,7 @@ class Widget_MyLatestCommits extends Widget {
 	}
 
 	public function _getLinkToCommit($project, $commit_id, $pluginName) {
-		return util_make_link('/scm/browser.php?group_id='.$project->getID().'&commit='.$commit_id, _('commit')._(': ').$commit_id);
+		return util_make_link('/scm/browser.php?group_id='.$project->getID().'&scm_plugin='.$pluginName.'&commit='.$commit_id, _('commit')._(': ').$commit_id);
 	}
 
 	public function getContent() {
diff --git a/src/common/widget/Widget_ProjectLatestCommits.class.php b/src/common/widget/Widget_ProjectLatestCommits.class.php
index 531a86d..c69c499 100644
--- a/src/common/widget/Widget_ProjectLatestCommits.class.php
+++ b/src/common/widget/Widget_ProjectLatestCommits.class.php
@@ -2,7 +2,7 @@
 /**
  * Widget_ProjectLatestCommits
  *
- * Copyright 2014,2017, Franck Villaume - TrivialDev
+ * Copyright 2014,2017-2018, Franck Villaume - TrivialDev
  *
  * This file is a part of Fusionforge.
  *
@@ -41,8 +41,8 @@ class Widget_ProjectLatestCommits extends Widget {
 		return _('5 Latest Commits');
 	}
 
-	public function _getLinkToCommit($project, $commit_id) {
-		return util_make_link('/scm/browser.php?group_id='.$project->getID().'&commit='.$commit_id, _('commit')._(': ').$commit_id);
+	public function _getLinkToCommit($project, $commit_id, $plugin_name) {
+		return util_make_link('/scm/browser.php?group_id='.$project->getID().'&scm_plugin='.$plugin_name.'&commit='.$commit_id, _('commit')._(': ').$commit_id);
 	}
 
 	public function getContent() {
@@ -75,7 +75,7 @@ class Widget_ProjectLatestCommits extends Widget {
 				}
 				$html .= html_e('div', $divattr,
 						html_e('div', array('style' => 'font-size:0.98em'),
-							$this->_getLinkToCommit($project, $revision['commit_id']).
+							$this->_getLinkToCommit($project, $revision['commit_id'], $revision['pluginName']).
 							' '._('on').' '.
 							date(_("Y-m-d H:i"), $revision['date'])).
 						html_e('div', array('style' => 'padding-left:20px; padding-bottom:4px; color:#555'),

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

Summary of changes:
 src/common/widget/Widget_MyLatestCommits.class.php      | 4 ++--
 src/common/widget/Widget_ProjectLatestCommits.class.php | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list