[Fusionforge-commits] r8409 - trunk/gforge/www/softwaremap
Roland Mas
lolando at libremir.placard.fr.eu.org
Wed Nov 18 21:25:07 CET 2009
Author: lolando
Date: 2009-11-18 21:25:07 +0100 (Wed, 18 Nov 2009)
New Revision: 8409
Modified:
trunk/gforge/www/softwaremap/trove_list.php
Log:
db_query_params() transition
Modified: trunk/gforge/www/softwaremap/trove_list.php
===================================================================
--- trunk/gforge/www/softwaremap/trove_list.php 2009-11-18 20:24:56 UTC (rev 8408)
+++ trunk/gforge/www/softwaremap/trove_list.php 2009-11-18 20:25:07 UTC (rev 8409)
@@ -171,7 +171,7 @@
}
// print subcategories
-$res_sub = db_query("
+$res_sub = db_query_params ('
SELECT trove_cat.trove_cat_id AS trove_cat_id,
trove_cat.fullname AS fullname,
trove_treesums.subprojects AS subprojects
@@ -179,10 +179,9 @@
WHERE (
trove_treesums.limit_1=0
OR trove_treesums.limit_1 IS NULL
- ) AND " // need no discriminators
- ."trove_cat.parent='$form_cat'
- ORDER BY fullname
-", -1, 0, SYS_DB_TROVE);
+ ) AND trove_cat.parent=$1
+ ORDER BY fullname',
+ array ($form_cat));
echo db_error();
while ($row_sub = db_fetch_array($res_sub)) {
@@ -199,12 +198,13 @@
// ########### right column: root level
print '</td><td>';
// here we print list of root level categories, and use open folder for current
-$res_rootcat = db_query("
+$res_rootcat = db_query_params ('
SELECT trove_cat_id,fullname
FROM trove_cat
WHERE parent=0
AND trove_cat_id!=0
- ORDER BY fullname");
+ ORDER BY fullname',
+ array ());
echo db_error();
print _('Browse By').':';
More information about the Fusionforge-commits
mailing list