[Fusionforge-commits] FusionForge branch master updated. v6.0.5-1818-gf08fff3

Franck Villaume nerville at libremir.placard.fr.eu.org
Sun May 14 10:00:13 CEST 2017


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  f08fff3561e0505f848a696623b85adf4715521d (commit)
      from  4542b8c1cbc4f71e1dabaa0fd1fa59ff484dda46 (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=f08fff3561e0505f848a696623b85adf4715521d

commit f08fff3561e0505f848a696623b85adf4715521d
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sun May 14 09:59:49 2017 +0200

    do not need an array to store a string

diff --git a/src/common/widget/Widget_TrackerComment.class.php b/src/common/widget/Widget_TrackerComment.class.php
index 3aa56d5..6f4ebbb 100644
--- a/src/common/widget/Widget_TrackerComment.class.php
+++ b/src/common/widget/Widget_TrackerComment.class.php
@@ -25,17 +25,17 @@ require_once 'Widget.class.php';
 
 class Widget_TrackerComment extends Widget {
 
-	var $content;
+	var $title;
 
 	function __construct() {
 		$request =& HTTPRequest::instance();
 		$owner_id   = (int)substr($request->get('owner'), 1);
 		parent::__construct('trackercomment', $owner_id, WidgetLayoutManager::OWNER_TYPE_TRACKER);
-		$this->content['title'] = _('Follow-up tabs');
+		$this->title = _('Follow-up tabs');
 	}
 
 	function getTitle() {
-		return $this->content['title'];
+		return $this->title;
 	}
 
 	function getDescription() {
@@ -43,7 +43,7 @@ class Widget_TrackerComment extends Widget {
 	}
 
 	function isAvailable() {
-		return isset($this->content['title']);
+		return isset($this->title);
 	}
 
 	function getContent() {
diff --git a/src/common/widget/Widget_TrackerDefaultActions.class.php b/src/common/widget/Widget_TrackerDefaultActions.class.php
index bc57810..de88740 100644
--- a/src/common/widget/Widget_TrackerDefaultActions.class.php
+++ b/src/common/widget/Widget_TrackerDefaultActions.class.php
@@ -25,7 +25,7 @@ require_once 'Widget.class.php';
 
 class Widget_TrackerDefaultActions extends Widget {
 
-	var $content;
+	var $title;
 
 	function __construct() {
 		global $func;
@@ -36,12 +36,12 @@ class Widget_TrackerDefaultActions extends Widget {
 		}
 		if ($func == 'detail' || forge_check_perm('tracker_admin', $owner_id)) {
 			parent::__construct('trackerdefaultactions', $owner_id, WidgetLayoutManager::OWNER_TYPE_TRACKER);
-			$this->content['title'] = _('Actions');
+			$this->title = _('Actions');
 		}
 	}
 
 	function getTitle() {
-		return $this->content['title'];
+		return $this->title;
 	}
 
 	function getDescription() {
@@ -49,7 +49,7 @@ class Widget_TrackerDefaultActions extends Widget {
 	}
 
 	function isAvailable() {
-		return isset($this->content['title']);
+		return isset($this->title);
 	}
 
 	function getContent() {
diff --git a/src/common/widget/Widget_TrackerGeneral.class.php b/src/common/widget/Widget_TrackerGeneral.class.php
index 564b133..38da69c 100644
--- a/src/common/widget/Widget_TrackerGeneral.class.php
+++ b/src/common/widget/Widget_TrackerGeneral.class.php
@@ -25,7 +25,7 @@ require_once 'Widget.class.php';
 
 class Widget_TrackerGeneral extends Widget {
 
-	var $content;
+	var $title;
 
 	function __construct() {
 		$request =& HTTPRequest::instance();
@@ -34,11 +34,11 @@ class Widget_TrackerGeneral extends Widget {
 			$owner_id = (int)$request->get('atid');
 		}
 		parent::__construct('trackergeneral', $owner_id, WidgetLayoutManager::OWNER_TYPE_TRACKER);
-		$this->content['title'] = _('General Information');
+		$this->title = _('General Information');
 	}
 
 	function getTitle() {
-		return $this->content['title'];
+		return $this->title;
 	}
 
 	function getDescription() {
@@ -46,7 +46,7 @@ class Widget_TrackerGeneral extends Widget {
 	}
 
 	function isAvailable() {
-		return isset($this->content['title']);
+		return isset($this->title);
 	}
 
 	function getContent() {
diff --git a/src/common/widget/Widget_TrackerMain.class.php b/src/common/widget/Widget_TrackerMain.class.php
index f970001..1ce9614 100644
--- a/src/common/widget/Widget_TrackerMain.class.php
+++ b/src/common/widget/Widget_TrackerMain.class.php
@@ -26,17 +26,17 @@ require_once 'Widget.class.php';
 
 class Widget_TrackerMain extends Widget {
 
-	var $content;
+	var $title;
 
 	function __construct() {
 		$request =& HTTPRequest::instance();
 		$owner_id   = (int)substr($request->get('owner'), 1);
 		parent::__construct('trackermain', $owner_id, WidgetLayoutManager::OWNER_TYPE_TRACKER);
-		$this->content['title'] = _('Internal Fields');
+		$this->title = _('Internal Fields');
 	}
 
 	function getTitle() {
-		return $this->content['title'];
+		return $this->title;
 	}
 
 	function getDescription() {
@@ -44,7 +44,7 @@ class Widget_TrackerMain extends Widget {
 	}
 
 	function isAvailable() {
-		return isset($this->content['title']);
+		return isset($this->title);
 	}
 
 	function getContent() {
diff --git a/src/common/widget/Widget_TrackerSummary.class.php b/src/common/widget/Widget_TrackerSummary.class.php
index 143d2f9..f32b5ff 100644
--- a/src/common/widget/Widget_TrackerSummary.class.php
+++ b/src/common/widget/Widget_TrackerSummary.class.php
@@ -26,17 +26,17 @@ require_once $gfwww.'include/note.php';
 
 class Widget_TrackerSummary extends Widget {
 
-	var $content;
+	var $title;
 
 	function __construct() {
 		$request =& HTTPRequest::instance();
 		$owner_id   = (int)substr($request->get('owner'), 1);
 		parent::__construct('trackersummary', $owner_id, WidgetLayoutManager::OWNER_TYPE_TRACKER);
-		$this->content['title'] = _('Description');
+		$this->title = _('Description');
 	}
 
 	function getTitle() {
-		return $this->content['title'];
+		return $this->title;
 	}
 
 	function getDescription() {
@@ -44,7 +44,7 @@ class Widget_TrackerSummary extends Widget {
 	}
 
 	function isAvailable() {
-		return isset($this->content['title']);
+		return isset($this->title);
 	}
 
 	function getContent() {

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

Summary of changes:
 src/common/widget/Widget_TrackerComment.class.php        | 8 ++++----
 src/common/widget/Widget_TrackerDefaultActions.class.php | 8 ++++----
 src/common/widget/Widget_TrackerGeneral.class.php        | 8 ++++----
 src/common/widget/Widget_TrackerMain.class.php           | 8 ++++----
 src/common/widget/Widget_TrackerSummary.class.php        | 8 ++++----
 5 files changed, 20 insertions(+), 20 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list