[Fusionforge-commits] r10398 - trunk/src/plugins/wiki/common

Marc-Etienne VARGENAU vargenau at libremir.placard.fr.eu.org
Thu Sep 2 21:15:06 CEST 2010


Author: vargenau
Date: 2010-09-02 21:15:06 +0200 (Thu, 02 Sep 2010)
New Revision: 10398

Modified:
   trunk/src/plugins/wiki/common/WikiPlugin.class.php
Log:
Fix db_query_params parameters

Modified: trunk/src/plugins/wiki/common/WikiPlugin.class.php
===================================================================
--- trunk/src/plugins/wiki/common/WikiPlugin.class.php	2010-09-02 19:07:57 UTC (rev 10397)
+++ trunk/src/plugins/wiki/common/WikiPlugin.class.php	2010-09-02 19:15:06 UTC (rev 10398)
@@ -207,20 +207,19 @@
 
 					$pat = '_g'.$group_id.'_';
 					$len = strlen($pat)+1;
-					$wres = db_query_params ('SELECT plugin_wiki_page.id AS id,
-							substring(plugin_wiki_page.pagename from $1) AS pagename,
-							plugin_wiki_version.version AS version, 
-							plugin_wiki_version.mtime AS activity_date, 
+					$wres = db_query_params ("SELECT plugin_wiki_page.id AS id,
+							substring(plugin_wiki_page.pagename from $len) AS pagename,
+							plugin_wiki_version.version AS version,
+							plugin_wiki_version.mtime AS activity_date,
 							plugin_wiki_version.minor_edit AS minor_edit,
 							plugin_wiki_version.versiondata AS versiondata
-						FROM plugin_wiki_page, plugin_wiki_version 
-						WHERE plugin_wiki_page.id=plugin_wiki_version.id 
-							AND mtime BETWEEN $2 AND $3
+						FROM plugin_wiki_page, plugin_wiki_version
+						WHERE plugin_wiki_page.id=plugin_wiki_version.id
+							AND mtime BETWEEN $1 AND $2
 							AND minor_edit=0
-							AND substring(plugin_wiki_page.pagename from 0 for $1) = $4
-						ORDER BY mtime DESC',
-                                                                 array ($len,
-                                                                        $params['begin'],
+							AND substring(plugin_wiki_page.pagename from 0 for $len) = $3
+						ORDER BY mtime DESC",
+                                                                 array ($params['begin'],
                                                                         $params['end'],
                                                                         $pat));
 




More information about the Fusionforge-commits mailing list