[Fusionforge-commits] FusionForge branch master updated. v6.0.5-1618-g1d3ec69

Marc-Etienne VARGENAU vargenau at libremir.placard.fr.eu.org
Fri Mar 31 11:14:09 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  1d3ec6971a6978b67569addad13c623cee21b3a1 (commit)
      from  dd29a3887446a68d9e021dcd48adaaa5ba4f946f (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=1d3ec6971a6978b67569addad13c623cee21b3a1

commit 1d3ec6971a6978b67569addad13c623cee21b3a1
Author: Marc-Etienne Vargenau <marc-etienne.vargenau at nokia.com>
Date:   Fri Mar 31 11:14:02 2017 +0200

    Use __construct

diff --git a/src/common/widget/WidgetLayout.class.php b/src/common/widget/WidgetLayout.class.php
index 6274d72..ec6c5ef 100644
--- a/src/common/widget/WidgetLayout.class.php
+++ b/src/common/widget/WidgetLayout.class.php
@@ -32,7 +32,7 @@ class WidgetLayout {
 	var $description;
 	var $scope;
 
-	function WidgetLayout($id, $name, $description, $scope) {
+	function __construct($id, $name, $description, $scope) {
 		$this->id          = $id;
 		$this->name        = $name;
 		$this->description = $description;
diff --git a/src/common/widget/WidgetLayout_Row.class.php b/src/common/widget/WidgetLayout_Row.class.php
index fd506dc..14189a8 100644
--- a/src/common/widget/WidgetLayout_Row.class.php
+++ b/src/common/widget/WidgetLayout_Row.class.php
@@ -25,7 +25,7 @@ class WidgetLayout_Row {
 	var $columns;
 	var $layout;
 
-	function WidgetLayout_Row($id, $rank) {
+	function __construct($id, $rank) {
 		$this->id      = $id;
 		$this->rank    = $rank;
 		$this->columns = array();
diff --git a/src/common/widget/WidgetLayout_Row_Column.class.php b/src/common/widget/WidgetLayout_Row_Column.class.php
index 7cd5134..d14dc9f 100644
--- a/src/common/widget/WidgetLayout_Row_Column.class.php
+++ b/src/common/widget/WidgetLayout_Row_Column.class.php
@@ -24,17 +24,21 @@ class WidgetLayout_Row_Column {
 	var $width;
 	var $contents;
 	var $row;
-	function WidgetLayout_Row_Column($id, $width) {
+
+	function __construct($id, $width) {
 		$this->id       = $id;
 		$this->width    = $width;
 		$this->contents = array();
 	}
+
 	function setRow(&$row) {
 		$this->row =& $row;
 	}
+
 	function add(&$c, $is_minimized, $display_preferences) {
 		$this->contents[] = array('content' => &$c, 'is_minimized' => $is_minimized, 'display_preferences' => $display_preferences);
 	}
+
 	function display($readonly, $owner_id, $owner_type, $is_last) {
 		echo html_ao('td', array('style' => 'height:10px; width:'. $this->width .'%; '. (!$is_last ? 'padding-right:20px;' : ''), 'id' => $this->getColumnId()));
 		foreach ($this->contents as $key => $nop) {
@@ -42,6 +46,7 @@ class WidgetLayout_Row_Column {
 		}
 		echo html_ac(html_ap() -1);
 	}
+
 	function getColumnId() {
 		return 'widgetlayout_col_'. $this->id;
 	}
diff --git a/src/common/widget/Widget_MyLatestCommits.class.php b/src/common/widget/Widget_MyLatestCommits.class.php
index a1b13e7..4b19c37 100644
--- a/src/common/widget/Widget_MyLatestCommits.class.php
+++ b/src/common/widget/Widget_MyLatestCommits.class.php
@@ -33,7 +33,7 @@ class Widget_MyLatestCommits extends Widget {
 	*/
 	private $_nb_commits;
 
-	public function __construct() {
+	function __construct() {
 		parent::__construct('mylatestcommits');
 		$this->_nb_commits = UserManager::instance()->getCurrentUser()->getPreference('my_latests_commits_nb_display');
 		if($this->_nb_commits === false) {

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

Summary of changes:
 src/common/widget/WidgetLayout.class.php            | 2 +-
 src/common/widget/WidgetLayout_Row.class.php        | 2 +-
 src/common/widget/WidgetLayout_Row_Column.class.php | 7 ++++++-
 src/common/widget/Widget_MyLatestCommits.class.php  | 2 +-
 4 files changed, 9 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list