[Fusionforge-commits] FusionForge branch Branch_5_3 updated. c6435c05f85bf73fb7ad15db920f23d73db620b4

Franck Villaume nerville at fusionforge.org
Tue Apr 15 14:53:20 CEST 2014


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, Branch_5_3 has been updated
       via  c6435c05f85bf73fb7ad15db920f23d73db620b4 (commit)
      from  63fc054a1434ecd3bd66ae33a8165d45c6701723 (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 -----------------------------------------------------------------
commit c6435c05f85bf73fb7ad15db920f23d73db620b4
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Tue Apr 15 14:52:20 2014 +0200

    hudson plugin: disable the user space: broken

diff --git a/src/plugins/hudson/include/hudsonPlugin.class.php b/src/plugins/hudson/include/hudsonPlugin.class.php
index 12d7cbb..d0b5464 100644
--- a/src/plugins/hudson/include/hudsonPlugin.class.php
+++ b/src/plugins/hudson/include/hudsonPlugin.class.php
@@ -5,7 +5,7 @@
  * Copyright (c) Xerox Corporation, Codendi 2007-2008.
  * @author Marc Nazarian <marc.nazarian at xrce.xerox.com>
  * Copyright (C) 2010-2011 Alain Peyrat - Alcatel-Lucent
- * Copyright 2013, Franck Villaume - TrivialDev
+ * Copyright 2013-2014, Franck Villaume - TrivialDev
  *
  * This file is a part of Fusionforge.
  *
@@ -32,12 +32,12 @@ class hudsonPlugin extends Plugin {
 		$this->name = "hudson";
 		$this->text = _('Hudson/Jenkins'); // To show in the tabs, use...
 		$this->_addHook("user_personal_links"); //to make a link to the user's personal part of the plugin
-		$this->_addHook("usermenu") ;
+		//$this->_addHook("usermenu") ;
 		$this->_addHook("groupmenu");	// To put into the project tabs
 		$this->_addHook("groupisactivecheckbox") ; // The "use ..." checkbox in editgroupinfo
 		$this->_addHook("groupisactivecheckboxpost") ; //
-		$this->_addHook("userisactivecheckbox") ; // The "use ..." checkbox in user account
-		$this->_addHook("userisactivecheckboxpost") ; //
+		//$this->_addHook("userisactivecheckbox") ; // The "use ..." checkbox in user account
+		//$this->_addHook("userisactivecheckboxpost") ; //
 		$this->_addHook("project_admin_plugins"); // to show up in the admin page fro group
 		$this->_addHook('javascript',  false);
 		$this->_addHook('cssfile', 'cssFile', false);
@@ -56,14 +56,14 @@ class hudsonPlugin extends Plugin {
 
 	function CallHook ($hookname, &$params) {
 		global $G_SESSION,$HTML;
-		if ($hookname == "usermenu") {
-			$text = $this->text; // this is what shows in the tab
-			if ($G_SESSION->usesPlugin("hudson")) {
-				$param = '?type=user&id=' . $G_SESSION->getId() . "&pluginname=" . $this->name; // we indicate the part we're calling is the user one
-				echo ' | ' . $HTML->PrintSubMenu (array ($text),
-						array ('/plugins/hudson/index.php' . $param ));
-			}
-		} elseif ($hookname == "groupmenu") {
+// 		if ($hookname == "usermenu") {
+// 			$text = $this->text; // this is what shows in the tab
+// 			if ($G_SESSION->usesPlugin("hudson")) {
+// 				$param = '?type=user&id=' . $G_SESSION->getId()."&pluginname=".$this->name; // we indicate the part we're calling is the user one
+// 				echo $HTML->PrintSubMenu(array($text), array('/plugins/hudson/index.php'.$param));
+// 			}
+// 		} elseif ($hookname == "groupmenu") {
+		if ($hookname == "groupmenu") {
 			$group_id=$params['group'];
 			$project = group_get_object($group_id);
 			if (!$project || !is_object($project)) {

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

Summary of changes:
 src/plugins/hudson/include/hudsonPlugin.class.php |   24 ++++++++++-----------
 1 file changed, 12 insertions(+), 12 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list