[Fusionforge-commits] r17778 - in trunk/src: common/import common/include common/include/system common/tracker db plugins/contribtracker/common plugins/extsubproj/include plugins/fckeditor/common plugins/forumml/include plugins/helloworld/include plugins/mailman/include plugins/oauthprovider/include plugins/oslc/include plugins/projectimport/common plugins/projectlabels/common plugins/quota_management/common plugins/quota_management/www plugins/scmhook/common plugins/soapadmin/include plugins/soapadmin/www/coreapi www/export www/project

Marc-Etienne VARGENAU vargenau at fusionforge.org
Thu Aug 22 18:19:23 CEST 2013


Author: vargenau
Date: 2013-08-22 18:19:23 +0200 (Thu, 22 Aug 2013)
New Revision: 17778

Modified:
   trunk/src/common/import/import_docman.php
   trunk/src/common/import/import_forums.php
   trunk/src/common/import/import_frs.php
   trunk/src/common/import/import_tasks.php
   trunk/src/common/import/import_trackers.php
   trunk/src/common/import/import_users.php
   trunk/src/common/include/Navigation.class.php
   trunk/src/common/include/system/LDAP.class.php
   trunk/src/common/tracker/ArtifactType.class.php
   trunk/src/db/20090507-install_workflow.php
   trunk/src/plugins/contribtracker/common/ContribTrackerPlugin.class.php
   trunk/src/plugins/extsubproj/include/extsubprojPlugin.class.php
   trunk/src/plugins/fckeditor/common/fckeditorPlugin.class.php
   trunk/src/plugins/forumml/include/forummlPlugin.class.php
   trunk/src/plugins/helloworld/include/helloworldPlugin.class.php
   trunk/src/plugins/mailman/include/mailmanPlugin.class.php
   trunk/src/plugins/oauthprovider/include/oauthprovider_plugin.php
   trunk/src/plugins/oslc/include/oslcPlugin.class.php
   trunk/src/plugins/projectimport/common/ProjectImportPlugin.class.php
   trunk/src/plugins/projectlabels/common/ProjectLabelsPlugin.class.php
   trunk/src/plugins/quota_management/common/quota_managementPlugin.class.php
   trunk/src/plugins/quota_management/www/quota_project.php
   trunk/src/plugins/scmhook/common/scmhookPlugin.class.php
   trunk/src/plugins/soapadmin/include/soapadminPlugin.class.php
   trunk/src/plugins/soapadmin/www/coreapi/coreapiservice.php
   trunk/src/www/export/rss20_docman.php
   trunk/src/www/export/rss20_forum.php
   trunk/src/www/export/rss20_tracker.php
   trunk/src/www/export/rssAboTask.php
   trunk/src/www/project/index.php
   trunk/src/www/project/memberlist.php
Log:
No & needed for group_get_object

Modified: trunk/src/common/import/import_docman.php
===================================================================
--- trunk/src/common/import/import_docman.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/common/import/import_docman.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -24,7 +24,7 @@
     function __construct($docman, $group_id) {
         $this->docman = $docman;
         $this->group_id = $group_id;
-    	$group =& group_get_object($group_id);
+    	$group = group_get_object($group_id);
 		if (!$group || !is_object($group)) {
 			print "error retrieving group from id";
 		} elseif ($group->isError()) {

Modified: trunk/src/common/import/import_forums.php
===================================================================
--- trunk/src/common/import/import_forums.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/common/import/import_forums.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -13,7 +13,7 @@
 		$this->forums = $forums;
 		$this->msgonly = $msgonly;
 		$this->group_id = $group_id;
-		$group =& group_get_object($group_id);
+		$group = group_get_object($group_id);
 		if (!$group || !is_object($group)) {
 			print "error retrieving group from id";
 		} elseif ($group->isError()) {

Modified: trunk/src/common/import/import_frs.php
===================================================================
--- trunk/src/common/import/import_frs.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/common/import/import_frs.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -21,7 +21,7 @@
     function __construct($frs, $group_id) {
         $this->frs = $frs;
         $this->group_id = $group_id;
-    	$group =& group_get_object($group_id);
+    	$group = group_get_object($group_id);
 		if (!$group || !is_object($group)) {
 			print "error retrieving group from id";
 		} elseif ($group->isError()) {

Modified: trunk/src/common/import/import_tasks.php
===================================================================
--- trunk/src/common/import/import_tasks.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/common/import/import_tasks.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -13,7 +13,7 @@
 
 	function __construct($trackers, $group_id, $users) {
 
-		$this->group =& group_get_object($group_id);
+		$this->group = group_get_object($group_id);
 		if (!$this->group || !is_object($this->group)) {
 			print "error retrieving group from id";
 		} elseif ($this->group->isError()) {

Modified: trunk/src/common/import/import_trackers.php
===================================================================
--- trunk/src/common/import/import_trackers.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/common/import/import_trackers.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -319,7 +319,7 @@
  */
 function tracker_fill($trackers, $group_id, $users){
 
-	$group =& group_get_object($group_id);
+	$group = group_get_object($group_id);
 	if (!$group || !is_object($group)) {
 		print "error retrieving group from id";
 	} elseif ($group->isError()) {

Modified: trunk/src/common/import/import_users.php
===================================================================
--- trunk/src/common/import/import_users.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/common/import/import_users.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -391,7 +391,7 @@
 	global $feedback;
 	global $message;
 
-	$group =& group_get_object($group_id);
+	$group = group_get_object($group_id);
 	if (!$group || !is_object($group)) {
 		exit_error('Error','Could Not Get Group');
 	} elseif ($group->isError()) {

Modified: trunk/src/common/include/Navigation.class.php
===================================================================
--- trunk/src/common/include/Navigation.class.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/common/include/Navigation.class.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -308,7 +308,7 @@
 		// Project
 		if (isset($GLOBALS['group_id'])) {
 			// get group info using the common result set
-			$project =& group_get_object($GLOBALS['group_id']);
+			$project = group_get_object($GLOBALS['group_id']);
 			if (is_int($project) && $project == 0) {
 				if (preg_match('/root=/',$request_uri)) {
 					$project_name = preg_replace('/.*?root=/', '', $request_uri);

Modified: trunk/src/common/include/system/LDAP.class.php
===================================================================
--- trunk/src/common/include/system/LDAP.class.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/common/include/system/LDAP.class.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -443,7 +443,7 @@
 		global $ldap_conn;
 
 
-		$group = &group_get_object($group_id);
+		$group = group_get_object($group_id);
 		if (!$group) {
 			$this->setError("Error: Cannot find group [$group_id]<br />");
 			return false;
@@ -470,7 +470,7 @@
 	function sysCreateGroup($group_id) {
 
 
-		$group = &group_get_object($group_id);
+		$group = group_get_object($group_id);
 		if (!$this->gfLdapConnect()) {
 			return false;
 		}
@@ -541,7 +541,7 @@
 	function sysRemoveGroup($group_id) {
 
 
-		$group = &group_get_object($group_id);
+		$group = group_get_object($group_id);
 		if (!$this->gfLdapConnect()) {
 			return false;
 		}
@@ -624,7 +624,7 @@
 		global $ldap_conn;
 
 
-		$group = &group_get_object($group_id);
+		$group = group_get_object($group_id);
 		$user  = &user_get_object($user_id);
 		if (!$this->gfLdapConnect()) {
 			return false;
@@ -694,7 +694,7 @@
 	function sysGroupRemoveUser($group_id,$user_id,$cvs_only=0) {
 
 
-		$group = &group_get_object($group_id);
+		$group = group_get_object($group_id);
 		$user  = &user_get_object($user_id);
 		if (!$this->gfLdapConnect()) {
 			return false;

Modified: trunk/src/common/tracker/ArtifactType.class.php
===================================================================
--- trunk/src/common/tracker/ArtifactType.class.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/common/tracker/ArtifactType.class.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -624,7 +624,7 @@
 	 */
 	function cloneFieldsFrom($clone_tracker_id) {
 
-		$g =& group_get_object(forge_get_config('template_group'));
+		$g = group_get_object(forge_get_config('template_group'));
 		if (!$g || !is_object($g)) {
 			$this->setError('Could Not Get Template Group');
 			return false;

Modified: trunk/src/db/20090507-install_workflow.php
===================================================================
--- trunk/src/db/20090507-install_workflow.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/db/20090507-install_workflow.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -30,7 +30,7 @@
 						      array ()) ;
 while($row = db_fetch_array($res)) {
 	print "Upgrading group_id=".$row['group_id']." (group_artifact_id=".$row['group_artifact_id'].")\n";
-	$group =& group_get_object($row['group_id']);
+	$group = group_get_object($row['group_id']);
 	$ath = new ArtifactTypeHtml($group, $row['group_artifact_id']);
 	$efarr =& $ath->getExtraFields(array(ARTIFACT_EXTRAFIELDTYPE_STATUS));
 	$keys=array_keys($efarr);

Modified: trunk/src/plugins/contribtracker/common/ContribTrackerPlugin.class.php
===================================================================
--- trunk/src/plugins/contribtracker/common/ContribTrackerPlugin.class.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/plugins/contribtracker/common/ContribTrackerPlugin.class.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -38,7 +38,7 @@
 	function CallHook($hookname, &$params) {
 		if ($hookname == "groupmenu") {
 			$group_id=$params['group'];
-			$project = &group_get_object($group_id);
+			$project = group_get_object($group_id);
 			if (!$project || !is_object($project)) {
 				return;
 			}
@@ -59,7 +59,7 @@
 			//Check if the group is active
 			// this code creates the checkbox in the project edit public info page to activate/deactivate the plugin
 			$group_id=$params['group'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			echo "<tr>";
 			echo "<td>";
 			echo ' <input type="CHECKBOX" name="use_contribtrackerplugin" value="1" ';
@@ -78,7 +78,7 @@
 		} elseif ($hookname == "groupisactivecheckboxpost") {
 			// this code actually activates/deactivates the plugin after the form was submitted in the project edit public info page
 			$group_id=$params['group'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			$use_contribtrackerplugin = getStringFromRequest('use_contribtrackerplugin');
 			if ( $use_contribtrackerplugin == 1 ) {
 				$group->setPluginUse ( $this->name );
@@ -88,7 +88,7 @@
 		} elseif ($hookname == "project_admin_plugins") {
 			// this displays the link in the project admin options page to its ContribTracker administration
 			$group_id = $params['group_id'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			if ( $group->usesPlugin ( $this->name ) ) {
 				echo util_make_link ("/plugins/".$this->name."/project_admin.php?group_id=".$group->getID(),
 						     _('Contribution Tracker admin')) ;
@@ -98,7 +98,7 @@
 
 		elseif ($hookname == "project_before_frs") {
 			$group_id = $params['group_id'];
-			$group = &group_get_object ($group_id);
+			$group = group_get_object ($group_id);
 
 			if ($group->usesPlugin($this->name)) {
 				global $HTML ;

Modified: trunk/src/plugins/extsubproj/include/extsubprojPlugin.class.php
===================================================================
--- trunk/src/plugins/extsubproj/include/extsubprojPlugin.class.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/plugins/extsubproj/include/extsubprojPlugin.class.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -297,7 +297,7 @@
 			}
 		} elseif ($hookname == "groupmenu") {
 			$group_id=$params['group'];
-			$project = &group_get_object($group_id);
+			$project = group_get_object($group_id);
 			if (!$project || !is_object($project)) {
 				return;
 			}
@@ -319,7 +319,7 @@
 			//Check if the group is active
 			// this code creates the checkbox in the project edit public info page to activate/deactivate the plugin
 			$group_id=$params['group'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			echo "<tr>";
 			echo "<td>";
 			echo ' <input type="checkbox" name="use_extsubprojplugin" value="1" ';
@@ -336,7 +336,7 @@
 		} elseif ($hookname == "groupisactivecheckboxpost") {
 			// this code actually activates/deactivates the plugin after the form was submitted in the project edit public info page
 			$group_id=$params['group'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			$use_extsubprojplugin = getStringFromRequest('use_extsubprojplugin');
 			if ( $use_extsubprojplugin == 1 ) {
 				$group->setPluginUse ( $this->name );
@@ -359,7 +359,7 @@
 		} elseif ($hookname == "project_admin_plugins") {
 			// this displays the link in the project admin options page to it's  extsubproj administration
 			$group_id = $params['group_id'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			if ( $group->usesPlugin ( $this->name ) ) {
 				echo '<p>'.util_make_link ("/plugins/extsubproj/admin/index.php?id=".$group->getID().'&type=admin&pluginname='.$this->name,
 						     _('extsubproj Admin')).'</p>' ;

Modified: trunk/src/plugins/fckeditor/common/fckeditorPlugin.class.php
===================================================================
--- trunk/src/plugins/fckeditor/common/fckeditorPlugin.class.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/plugins/fckeditor/common/fckeditorPlugin.class.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -61,7 +61,7 @@
 			$display = 0;
 			if (isset($params['group'])) {
 				$group_id=$params['group']; // get the project id
-				$project = &group_get_object($group_id);
+				$project = group_get_object($group_id);
 				if ( (!$project) || (!is_object($project)) || ($project->isError()) || (!$project->isProject()) ) {
 					return false;
 				}

Modified: trunk/src/plugins/forumml/include/forummlPlugin.class.php
===================================================================
--- trunk/src/plugins/forumml/include/forummlPlugin.class.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/plugins/forumml/include/forummlPlugin.class.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -62,7 +62,7 @@
 			//Check if the group is active
 			// this code creates the checkbox in the project edit public info page to activate/deactivate the plugin
 			$group_id=$params['group'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			echo "<tr>";
 			echo "<td>";
 			echo ' <input type="CHECKBOX" name="use_forummlplugin" value="1" ';
@@ -80,7 +80,7 @@
 		} elseif ($hookname == "groupisactivecheckboxpost") {
 			// this code actually activates/deactivates the plugin after the form was submitted in the project edit public info page
 			$group_id=$params['group'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			$use_mailmanplugin = getStringFromRequest('use_forummlplugin');
 			if ( $use_mailmanplugin == 1 ) {
 				$group->setPluginUse ( $this->name );
@@ -94,7 +94,7 @@
 			$request =& HTTPRequest::instance();
 			$group_id = (int) $request->get('group_id');
 			if ($group_id) {
-				$group =& group_get_object($group_id);
+				$group = group_get_object($group_id);
 				if ($group->usesPlugin('forumml')) {
 					if (isset($params['object'])) {
 						$searchManager = $params['object'];

Modified: trunk/src/plugins/helloworld/include/helloworldPlugin.class.php
===================================================================
--- trunk/src/plugins/helloworld/include/helloworldPlugin.class.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/plugins/helloworld/include/helloworldPlugin.class.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -48,7 +48,7 @@
 			}
 		} elseif ($hookname == "groupmenu") {
 			$group_id=$params['group'];
-			$project = &group_get_object($group_id);
+			$project = group_get_object($group_id);
 			if (!$project || !is_object($project)) {
 				return;
 			}
@@ -70,7 +70,7 @@
 			//Check if the group is active
 			// this code creates the checkbox in the project edit public info page to activate/deactivate the plugin
 			$group_id=$params['group'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			echo "<tr>";
 			echo "<td>";
 			echo ' <input type="checkbox" name="use_helloworldplugin" value="1" ';
@@ -87,7 +87,7 @@
 		} elseif ($hookname == "groupisactivecheckboxpost") {
 			// this code actually activates/deactivates the plugin after the form was submitted in the project edit public info page
 			$group_id=$params['group'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			$use_helloworldplugin = getStringFromRequest('use_helloworldplugin');
 			if ( $use_helloworldplugin == 1 ) {
 				$group->setPluginUse ( $this->name );
@@ -110,7 +110,7 @@
 		} elseif ($hookname == "project_admin_plugins") {
 			// this displays the link in the project admin options page to it's  HelloWorld administration
 			$group_id = $params['group_id'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			if ( $group->usesPlugin ( $this->name ) ) {
 				echo '<p>'.util_make_link ("/plugins/helloworld/admin/index.php?id=".$group->getID().'&type=admin&pluginname='.$this->name,
 						     _('HelloWorld Admin')).'</p>' ;

Modified: trunk/src/plugins/mailman/include/mailmanPlugin.class.php
===================================================================
--- trunk/src/plugins/mailman/include/mailmanPlugin.class.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/plugins/mailman/include/mailmanPlugin.class.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -81,7 +81,7 @@
 			}
 		} elseif ($hookname == "groupmenu") {
 			$group_id=$params['group'];
-			$project = &group_get_object($group_id);
+			$project = group_get_object($group_id);
 			if (!$project || !is_object($project)) {
 				return;
 			}
@@ -101,7 +101,7 @@
 			//Check if the group is active
 			// this code creates the checkbox in the project edit public info page to activate/deactivate the plugin
 			$group_id=$params['group'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			echo "<tr>";
 			echo "<td>";
 			echo ' <input type="CHECKBOX" name="use_mailmanplugin" value="1" ';
@@ -119,7 +119,7 @@
 		} elseif ($hookname == "groupisactivecheckboxpost") {
 			// this code actually activates/deactivates the plugin after the form was submitted in the project edit public info page
 			$group_id=$params['group'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			$use_mailmanplugin = getStringFromRequest('use_mailmanplugin');
 			if ( $use_mailmanplugin == 1 ) {
 				$group->setPluginUse ( $this->name );
@@ -141,7 +141,7 @@
 		} elseif ($hookname == "project_admin_plugins") {
 			// this displays the link in the project admin options page to it's  mailman administration
 			$group_id = $params['group_id'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			if ( $group->usesPlugin ( $this->name ) ) {
 				echo '<p>'.util_make_link ("/plugins/".$this->name."/index.php?id=".$group->getID().'&type=admin&pluginname='.$this->name,
 									 _('View the mailman Administration')).'</p>';
@@ -188,7 +188,7 @@
 		}
 		elseif ($hookname == "group_delete") {
 			$group_id = $params['group_id'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			$mlf = new MailmanListFactory($group);
 			$ml_arr =& $mlf->getMailmanLists();
 			for ($i=0; $i<count($ml_arr); $i++) {
@@ -205,7 +205,7 @@
 		elseif ($hookname == "group_approve") {
 			$idadmin_group =$params[0];
 			$group_id=$params[1];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			$mlist = new MailmanList($group);
 			if (!$mlist->create('commits','Commits',1,$idadmin_group)) {
 				$this->setError(sprintf(_('ML: %s'),$mlist->getErrorMessage()));

Modified: trunk/src/plugins/oauthprovider/include/oauthprovider_plugin.php
===================================================================
--- trunk/src/plugins/oauthprovider/include/oauthprovider_plugin.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/plugins/oauthprovider/include/oauthprovider_plugin.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -66,7 +66,7 @@
 	}
 	function groupmenu($params) {
 		$group_id=$params['group'];
-			$project = &group_get_object($group_id);
+			$project = group_get_object($group_id);
 			if (!$project || !is_object($project)) {
 				return;
 			}
@@ -93,7 +93,7 @@
 		//Check if the group is active
 			// this code creates the checkbox in the project edit public info page to activate/deactivate the plugin
 			$group_id=$params['group'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			echo "<tr>";
 			echo "<td>";
 			echo ' <input type="checkbox" name="use_oauthproviderplugin" value="1" ';
@@ -113,7 +113,7 @@
 
 	// this code actually activates/deactivates the plugin after the form was submitted in the project edit public info page
 			$group_id=$params['group'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			$use_oauthproviderplugin = getStringFromRequest('use_oauthproviderplugin');
 			if ( $use_oauthproviderplugin == 1 ) {
 				$group->setPluginUse ( $this->name );
@@ -172,7 +172,7 @@
 	function project_admin_plugins($params ) {
 					// this displays the link in the project admin options page to it's  oauthprovider administration
 			$group_id = $params['group_id'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			if ( $group->usesPlugin ( $this->name ) ) {
 				echo '<p>'.util_make_link ("/plugins/oauthprovider/admin/index.php?id=".$group->getID().'&type=admin',
 						     _('oauthprovider Admin')).'</p>' ;

Modified: trunk/src/plugins/oslc/include/oslcPlugin.class.php
===================================================================
--- trunk/src/plugins/oslc/include/oslcPlugin.class.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/plugins/oslc/include/oslcPlugin.class.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -50,7 +50,7 @@
 			}
 		} elseif ($hookname == "groupmenu") {
 			$group_id=$params['group'];
-			$project = &group_get_object($group_id);
+			$project = group_get_object($group_id);
 			if (!$project || !is_object($project)) {
 				return;
 			}
@@ -74,7 +74,7 @@
 			//Check if the group is active
 			// this code creates the checkbox in the project edit public info page to activate/deactivate the plugin
 			$group_id=$params['group'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			echo "<tr>";
 			echo "<td>";
 			echo ' <input type="checkbox" name="use_oslcplugin" value="1" ';
@@ -91,7 +91,7 @@
 		} elseif ($hookname == "groupisactivecheckboxpost") {
 			// this code actually activates/deactivates the plugin after the form was submitted in the project edit public info page
 			$group_id=$params['group'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			$use_oslcplugin = getStringFromRequest('use_oslcplugin');
 			if ( $use_oslcplugin == 1 ) {
 				$group->setPluginUse ( $this->name );
@@ -147,7 +147,7 @@
 		} elseif ($hookname == "project_admin_plugins") {
 			// this displays the link in the project admin options page to it's  oslc administration
 			$group_id = $params['group_id'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			if ( $group->usesPlugin ( $this->name ) ) {
 				echo '<p>'.util_make_link ("/plugins/oslc/admin/index.php?id=".$group->getID().'&type=admin&pluginname='.$this->name,
 						     _('oslc Admin')).'</p>' ;

Modified: trunk/src/plugins/projectimport/common/ProjectImportPlugin.class.php
===================================================================
--- trunk/src/plugins/projectimport/common/ProjectImportPlugin.class.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/plugins/projectimport/common/ProjectImportPlugin.class.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -53,7 +53,7 @@
 			}
 		} else */ if ($hookname == "groupmenu") {
 			$group_id=$params['group'];
-			$project = &group_get_object($group_id);
+			$project = group_get_object($group_id);
 			if (!$project || !is_object($project)) {
 				return;
 			}
@@ -75,7 +75,7 @@
 			//Check if the group is active
 			// this code creates the checkbox in the project edit public info page to activate/deactivate the plugin
 			$group_id=$params['group'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			echo "<tr>";
 			echo "<td>";
 			echo ' <input type="checkbox" name="use_projectimportplugin" value="1" ';
@@ -92,7 +92,7 @@
 		} elseif ($hookname == "groupisactivecheckboxpost") {
 			// this code actually activates/deactivates the plugin after the form was submitted in the project edit public info page
 			$group_id=$params['group'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			$use_projectimportplugin = getStringFromRequest('use_projectimportplugin');
 			if ( $use_projectimportplugin == 1 ) {
 				$group->setPluginUse ( $this->name );
@@ -148,7 +148,7 @@
 		} elseif ($hookname == "project_admin_plugins") {
 			// this displays the link in the project admin options page to it's  ProjectImport administration
 			$group_id = $params['group_id'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			if ( $group->usesPlugin ( $this->name ) ) {
 				echo util_make_link ("/plugins/projectimport/index.php?id=".$group->getID().'&type=admin&pluginname='.$this->name,
 						     _('View the ProjectImport Administration')).'<br />';

Modified: trunk/src/plugins/projectlabels/common/ProjectLabelsPlugin.class.php
===================================================================
--- trunk/src/plugins/projectlabels/common/ProjectLabelsPlugin.class.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/plugins/projectlabels/common/ProjectLabelsPlugin.class.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -17,7 +17,7 @@
 						      _('Project labels'). ' [' . _('Project labels plugin') . ']') . '</li>';
 		} elseif ($hookname == "project_before_widgets") {
 			$group_id=$params['group_id'];
-			$project = &group_get_object($group_id);
+			$project = group_get_object($group_id);
 			if (!$project || !is_object($project))
 				return;
 			if ($project->isError())

Modified: trunk/src/plugins/quota_management/common/quota_managementPlugin.class.php
===================================================================
--- trunk/src/plugins/quota_management/common/quota_managementPlugin.class.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/plugins/quota_management/common/quota_managementPlugin.class.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -44,7 +44,7 @@
 			case "project_admin_plugins": {
 				// this displays the link in the project admin options page to it's  quota_management administration
 				$group_id = $params['group_id'];
-				$group = &group_get_object($group_id);
+				$group = group_get_object($group_id);
 				if ( $group->usesPlugin($this->name)) {
 					echo util_make_link('/plugins/quota_management/index.php?id='.$group->getID().'&type=admin&pluginname='.$this->name,
 							_('View the quota_management Administration')

Modified: trunk/src/plugins/quota_management/www/quota_project.php
===================================================================
--- trunk/src/plugins/quota_management/www/quota_project.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/plugins/quota_management/www/quota_project.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -35,7 +35,7 @@
 
 session_require_perm('project_admin', $id);
 
-$group = &group_get_object($id);
+$group = group_get_object($id);
 
 if (!$group || !is_object($group)) {
 	exit_no_group();

Modified: trunk/src/plugins/scmhook/common/scmhookPlugin.class.php
===================================================================
--- trunk/src/plugins/scmhook/common/scmhookPlugin.class.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/plugins/scmhook/common/scmhookPlugin.class.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -43,7 +43,7 @@
 			case 'scm_admin_page': {
 				$group_id = $params['group_id'];
 				$scm_plugin = $params['scm_plugin'];
-				$group = &group_get_object($group_id);
+				$group = group_get_object($group_id);
 				if ($group->usesPlugin($this->name) && $scm_plugin) {
 					$this->displayScmHook($group_id, $scm_plugin);
 				}
@@ -55,7 +55,7 @@
 			}
 			case 'artifact_extra_detail': {
 				$group_id = $params['group_id'];
-				$group = &group_get_object($group_id);
+				$group = group_get_object($group_id);
 				if ($group->usesPlugin($this->name)) {
 					$this->artifact_extra_detail($params);
 				}
@@ -63,7 +63,7 @@
 			}
 			case 'task_extra_detail': {
 				$group_id = $params['group_id'];
-				$group = &group_get_object($group_id);
+				$group = group_get_object($group_id);
 				if ($group->usesPlugin($this->name)) {
 					$this->task_extra_detail($params);
 				}
@@ -177,7 +177,7 @@
 
 	function getAvailableHooks($group_id) {
 		$listScm = $this->getListLibraryScm();
-		$group = &group_get_object($group_id);
+		$group = group_get_object($group_id);
 		for ($i = 0; $i < count($listScm); $i++) {
 			if ($group->usesPlugin($listScm[$i])) {
 				return $this->getListLibraryHook($listScm[$i]);

Modified: trunk/src/plugins/soapadmin/include/soapadminPlugin.class.php
===================================================================
--- trunk/src/plugins/soapadmin/include/soapadminPlugin.class.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/plugins/soapadmin/include/soapadminPlugin.class.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -47,7 +47,7 @@
 			}
 		} elseif ($hookname == "groupmenu") {
 			$group_id=$params['group'];
-			$project = &group_get_object($group_id);
+			$project = group_get_object($group_id);
 			if (!$project || !is_object($project)) {
 				return;
 			}
@@ -69,7 +69,7 @@
 			//Check if the group is active
 			// this code creates the checkbox in the project edit public info page to activate/deactivate the plugin
 			$group_id=$params['group'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			echo "<tr>";
 			echo "<td>";
 			echo ' <input type="checkbox" name="use_soapadminplugin" value="1" ';
@@ -86,7 +86,7 @@
 		} elseif ($hookname == "groupisactivecheckboxpost") {
 			// this code actually activates/deactivates the plugin after the form was submitted in the project edit public info page
 			$group_id=$params['group'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			$use_soapadminplugin = getStringFromRequest('use_soapadminplugin');
 			if ( $use_soapadminplugin == 1 ) {
 				$group->setPluginUse ( $this->name );
@@ -142,7 +142,7 @@
 		} elseif ($hookname == "project_admin_plugins") {
 			// this displays the link in the project admin options page to it's  SoapAdmin administration
 			$group_id = $params['group_id'];
-			$group = &group_get_object($group_id);
+			$group = group_get_object($group_id);
 			if ( $group->usesPlugin ( $this->name ) ) {
 				echo '<p>'.util_make_link ("/plugins/soapadmin/admin/index.php?id=".$group->getID().'&type=admin&pluginname='.$this->name,
 						     _('SoapAdmin Admin')).'</p>' ;

Modified: trunk/src/plugins/soapadmin/www/coreapi/coreapiservice.php
===================================================================
--- trunk/src/plugins/soapadmin/www/coreapi/coreapiservice.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/plugins/soapadmin/www/coreapi/coreapiservice.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -145,7 +145,7 @@
 			return new SoapFault($e->getCode(),$e->getMessage());
 		}
 
-		$grps =& group_get_objects($group_ids);
+		$grps = group_get_objects($group_ids);
 		if (!$grps) {
 			$this->logger->debug("Could Not Get Groups by Id");
 			return new soap_fault ('2001','group','Could Not Get Groups by Id'.$inputArgs,$feedback);
@@ -472,7 +472,7 @@
 			return new SoapFault($e->getCode(),$e->getMessage());
 		}
 		// Search the group object in the database
-		$grp =& group_get_object($group_id);
+		$grp = group_get_object($group_id);
 		$this->logger->debug("group_get_object : ".var_export($grp, true));
 
 		// Error handle

Modified: trunk/src/www/export/rss20_docman.php
===================================================================
--- trunk/src/www/export/rss20_docman.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/www/export/rss20_docman.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -47,7 +47,7 @@
 
 if (isset($group_id) && !empty($group_id) && is_numeric($group_id)) {
 	session_require_perm('project_read', $group_id);
-	$group =& group_get_object($group_id);
+	$group = group_get_object($group_id);
 
 	//does group exist? do we get an object?
 	if (!$group || !is_object($group)) {

Modified: trunk/src/www/export/rss20_forum.php
===================================================================
--- trunk/src/www/export/rss20_forum.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/www/export/rss20_forum.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -86,7 +86,7 @@
     //loop through group_ids
     for ($i=0; $i<count($group_ids);$i++){
         if (is_numeric($group_ids[$i])) {
-            $group =& group_get_object($group_ids[$i]);
+            $group = group_get_object($group_ids[$i]);
             //does group exist? do we get an object? is group public? does it use forums?
             if ($group && is_object($group) && !$group->isError()
                         && $group->isPublic() && $group->usesForum()){
@@ -127,7 +127,7 @@
             if ($result && db_numrows($result) >= 1) {
                 $forum_group_id=db_result($result,0,'group_id');
 
-                $g =& group_get_object($forum_group_id);
+                $g = group_get_object($forum_group_id);
                 if ($g && is_object($g) && !$g->isError() && $g->isPublic() && $g->usesForum()) {
                     $f=new Forum($g,$fid);
 

Modified: trunk/src/www/export/rss20_tracker.php
===================================================================
--- trunk/src/www/export/rss20_tracker.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/www/export/rss20_tracker.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -38,9 +38,8 @@
 if (isset($_GET['group_id'])&&!empty($_GET['group_id'])&&is_numeric($_GET['group_id'])) {
 	$group_id = $_GET['group_id'];
 
-	$group =& group_get_object($group_id);
+	$group = group_get_object($group_id);
 
-
 	//does group exist? do we get an object?
 	if (!$group || !is_object($group)) {
 		beginFeed();

Modified: trunk/src/www/export/rssAboTask.php
===================================================================
--- trunk/src/www/export/rssAboTask.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/www/export/rssAboTask.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -58,7 +58,7 @@
 $group_project_id = $tinfo['group_project_id'];
 $project_task_id = $tinfo['project_task_id'];
 
-$objGroup =& group_get_object($group_id);
+$objGroup = group_get_object($group_id);
 if (!$objGroup || !is_object($objGroup)) {
 	exit_no_group();
 } elseif ($objGroup->isError()) {

Modified: trunk/src/www/project/index.php
===================================================================
--- trunk/src/www/project/index.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/www/project/index.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -36,7 +36,7 @@
 }
 
 if (isset ($sys_noforcetype) && $sys_noforcetype) {
-	$project = &group_get_object($group_id);
+	$project = group_get_object($group_id);
 	include $gfwww.'include/project_home.php';
 } else {
 	session_redirect('/projects/'. group_getunixname($group_id) .'/');

Modified: trunk/src/www/project/memberlist.php
===================================================================
--- trunk/src/www/project/memberlist.php	2013-08-22 15:53:45 UTC (rev 17777)
+++ trunk/src/www/project/memberlist.php	2013-08-22 16:19:23 UTC (rev 17778)
@@ -37,7 +37,7 @@
 echo '<p>' . _('If you would like to contribute to this project by becoming a member, contact one of the project admins, designated in bold text below.') . '</p>';
 
 // beginning of the user descripion block
-$project =& group_get_object($group_id);
+$project = group_get_object($group_id);
 $project_stdzd_uri = util_make_url_g ($project->getUnixName(), $group_id);
 $usergroup_stdzd_uri = $project_stdzd_uri.'members/';
 print '<div about="'. $usergroup_stdzd_uri .'" typeof="sioc:UserGroup">';




More information about the Fusionforge-commits mailing list