[Fusionforge-commits] r8153 - trunk/gforge/www/search/include/renderers

Roland Mas lolando at libremir.placard.fr.eu.org
Wed Sep 23 17:18:31 CEST 2009


Author: lolando
Date: 2009-09-23 17:18:31 +0200 (Wed, 23 Sep 2009)
New Revision: 8153

Modified:
   trunk/gforge/www/search/include/renderers/ProjectRssSearchRenderer.class.php
Log:
db_query_params() migration

Modified: trunk/gforge/www/search/include/renderers/ProjectRssSearchRenderer.class.php
===================================================================
--- trunk/gforge/www/search/include/renderers/ProjectRssSearchRenderer.class.php	2009-09-23 15:18:23 UTC (rev 8152)
+++ trunk/gforge/www/search/include/renderers/ProjectRssSearchRenderer.class.php	2009-09-23 15:18:31 UTC (rev 8153)
@@ -21,12 +21,12 @@
  */
 function rssProjectCallback($dataRow) {
 	// $default_trove_cat defined in local.inc
-	$result = db_query('SELECT trove_cat.fullpath '
-		.'FROM trove_group_link, trove_cat '
-		.'WHERE trove_group_link.trove_cat_root='.$GLOBALS['default_trove_cat'].' '
-		.'AND trove_group_link.trove_cat_id=trove_cat.trove_cat_id '
-		.'AND group_id=\''.$dataRow['group_id'].'\'');
-	
+	$result = db_query_params ('SELECT trove_cat.fullpath FROM trove_group_link, trove_cat
+WHERE trove_group_link.trove_cat_root=$1
+AND trove_group_link.trove_cat_id=trove_cat.trove_cat_id
+AND group_id=$2',
+				   array ($GLOBALS['default_trove_cat'],
+					  $dataRow['group_id'])) ;
 	$return = '';
 	$return .= ' | date registered: '.date('M jS Y', $dataRow['register_time']);
 	$return .= ' | category: '.str_replace(' ', '', implode(',', util_result_column_to_array($result)));




More information about the Fusionforge-commits mailing list