[Fusionforge-commits] r8768 - in trunk/gforge/www: include project/admin

Roland Mas lolando at libremir.placard.fr.eu.org
Wed Feb 10 09:38:41 CET 2010


Author: lolando
Date: 2010-02-10 09:38:41 +0100 (Wed, 10 Feb 2010)
New Revision: 8768

Modified:
   trunk/gforge/www/include/project_home.php
   trunk/gforge/www/project/admin/index.php
Log:
Remove db_query() invocations from the accessibility patches

Modified: trunk/gforge/www/include/project_home.php
===================================================================
--- trunk/gforge/www/include/project_home.php	2010-02-10 08:38:31 UTC (rev 8767)
+++ trunk/gforge/www/include/project_home.php	2010-02-10 08:38:41 UTC (rev 8768)
@@ -381,8 +381,8 @@
 	$link_content = $HTML->getPmPic('') . ' ' . _('Task Manager');
 	print util_make_link( '/pm/?group_id='.$group_id, $link_content);
 	
-	$sql="SELECT * FROM project_group_list WHERE group_id='$group_id' AND is_public=1";
-	$result = db_query ($sql);
+	$result = db_query_params ('SELECT * FROM project_group_list WHERE group_id=$1 AND is_public=1',
+				   $array ($group_id));
 	$rows = db_numrows($result);
 	if (!$result || $rows < 1) {
 		echo '<br /><em>'._('There are no public subprojects available').'</em>';

Modified: trunk/gforge/www/project/admin/index.php
===================================================================
--- trunk/gforge/www/project/admin/index.php	2010-02-10 08:38:31 UTC (rev 8767)
+++ trunk/gforge/www/project/admin/index.php	2010-02-10 08:38:41 UTC (rev 8768)
@@ -273,7 +273,7 @@
 
 <?php
 
-		echo $HTML->boxTop(_('Group Members'));
+		echo $HTML->boxTop(_('Project Members'));
 
 		/*
 
@@ -281,11 +281,12 @@
 
 		*/
 
-		$res_memb = db_query("SELECT users.realname,users.user_id,users.status,
+		$res_memb = db_query_params ('SELECT users.realname,users.user_id,users.status,
 			users.user_name,user_group.admin_flags,user_group.role_id
 			FROM users,user_group 
 			WHERE users.user_id=user_group.user_id 
-			AND user_group.group_id='$group_id' ORDER BY users.lastname,users.firstname");
+			AND user_group.group_id=$1 ORDER BY users.lastname,users.firstname',
+					     array ($group_id));
 
 		echo '
 		<table class="width-100p100">




More information about the Fusionforge-commits mailing list