[Fusionforge-commits] r10529 - in trunk/src: plugins/mantisbt/common www/project

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Thu Sep 16 22:12:44 CEST 2010


Author: nerville
Date: 2010-09-16 22:12:44 +0200 (Thu, 16 Sep 2010)
New Revision: 10529

Modified:
   trunk/src/plugins/mantisbt/common/MantisBTPlugin.class.php
   trunk/src/www/project/index.php
Log:
fix build

Modified: trunk/src/plugins/mantisbt/common/MantisBTPlugin.class.php
===================================================================
--- trunk/src/plugins/mantisbt/common/MantisBTPlugin.class.php	2010-09-16 20:07:00 UTC (rev 10528)
+++ trunk/src/plugins/mantisbt/common/MantisBTPlugin.class.php	2010-09-16 20:12:44 UTC (rev 10529)
@@ -239,7 +239,7 @@
 	}
 }
 
-function addProjetMantis($idProjet, $nomProjet, $isPublic, $description){
+function addProjetMantis($idProjet, $nomProjet, $isPublic, $description) {
 	
 	$projet = array();
 	$project['name'] = $nomProjet;
@@ -269,9 +269,9 @@
 		echo db_error();
 	}
 }
+
+function removeProjetMantis($idProjet) {
 	
-function removeProjetMantis($idProjet){
-	
 	$resIdProjetMantis = db_query_params('SELECT group_mantisbt.id_mantisbt FROM group_mantisbt WHERE group_mantisbt.id_group = $1',
 					array($idProjet));
 	
@@ -288,7 +288,7 @@
 		}catch (SoapFault $soapFault) {
 			echo $soapFault->faultstring;
 		}
-		if (!$delete){
+		if (!isset($delete)){
 			echo "Error : Impossible de supprimer le projet dans mantis : ".$idProjet;
 			echo "<br/>";
 		}else{
@@ -325,8 +325,9 @@
 		} catch (SoapFault $soapFault) {
 			echo $soapFault->faultstring;
 		}
-		if (!isset($update)) {
+		if (!isset($update))
 			echo "Error : update MantisBT projet";
+
 	}
 }
 
@@ -342,7 +343,6 @@
 	}else{
 		return true;
 	}
-	
 }
 
 function getIdProjetMantis($idProjet){
@@ -377,7 +377,7 @@
     }
 }
 
-function updateUsersProjetMantis($idProjet, $members){
+function updateUsersProjetMantis($idProjet, $members) {
 	
 	global $role;
 	global $sys_mantisbt_host, $sys_mantisbt_db_user, $sys_mantisbt_db_password, $sys_mantisbt_db_port, $sys_mantisbt_db_name;
@@ -432,9 +432,9 @@
 								"mantis_project_user_list_table",
 								array ("project_id" => $idMantis, "user_id" => $idUser, "access_level" => $role[$array['role']])
 							);
-				if (!$resultInsert){
+				if (!isset($resultInsert))
 					echo "Error : Impossible de mettre à jour les roles dans mantisbt";
-				}
+
 			}
 		}
 	}
@@ -479,9 +479,9 @@
     $row = db_fetch_array($child_query);
 
     if ($row == null) {
-	return 0;
+		return 0;
     }else{
-	return $row['group_id'];
+		return $row['group_id'];
     }
 }
 

Modified: trunk/src/www/project/index.php
===================================================================
--- trunk/src/www/project/index.php	2010-09-16 20:07:00 UTC (rev 10528)
+++ trunk/src/www/project/index.php	2010-09-16 20:12:44 UTC (rev 10529)
@@ -33,14 +33,13 @@
 }
 
 if (!$group_id) {
-	exit_error("Missing Project Argument","A project must be specified for this page.");
+	exit_error(_('Error'),_('Missing Project Argument : A project must be specified for this page.'));
 }
 
 if (isset ($sys_noforcetype) && $sys_noforcetype) {
 	$project = &group_get_object($group_id);
 	include $gfwww.'include/project_home.php';
 } else {
-	session_redirect('/projects/'. group_getunixname($group_id) .'/'));
+	session_redirect('/projects/'. group_getunixname($group_id) .'/');
 }
-
 ?>




More information about the Fusionforge-commits mailing list