[Fusionforge-commits] r9250 - in trunk/gforge/common: forum include

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Sat Mar 27 13:04:58 CET 2010


Author: aljeux
Date: 2010-03-27 13:04:58 +0100 (Sat, 27 Mar 2010)
New Revision: 9250

Modified:
   trunk/gforge/common/forum/Forum.class.php
   trunk/gforge/common/include/Group.class.php
   trunk/gforge/common/include/database-pgsql.php
Log:
minor clean up after r9247 by olenz

Modified: trunk/gforge/common/forum/Forum.class.php
===================================================================
--- trunk/gforge/common/forum/Forum.class.php	2010-03-27 11:56:18 UTC (rev 9249)
+++ trunk/gforge/common/forum/Forum.class.php	2010-03-27 12:04:58 UTC (rev 9250)
@@ -274,8 +274,6 @@
 	 *	@return	int	The next thread_id #.
 	 */
 	function getNextThreadID() {
-		global $sys_database_type;
-
 		$result = db_query_params ('SELECT nextval($1)',
 					   array ('forum_thread_seq')) ;
 		if (!$result || db_numrows($result) < 1) {

Modified: trunk/gforge/common/include/Group.class.php
===================================================================
--- trunk/gforge/common/include/Group.class.php	2010-03-27 11:56:18 UTC (rev 9249)
+++ trunk/gforge/common/include/Group.class.php	2010-03-27 12:04:58 UTC (rev 9250)
@@ -1784,7 +1784,7 @@
 	 *	@return	boolean	success.
 	 */ 
 	function removeUser($user_id) {
-		global $SYS,$sys_database_type;
+		global $SYS;
 
 		if ($user_id==user_getid()) {
 			//users can remove themselves

Modified: trunk/gforge/common/include/database-pgsql.php
===================================================================
--- trunk/gforge/common/include/database-pgsql.php	2010-03-27 11:56:18 UTC (rev 9249)
+++ trunk/gforge/common/include/database-pgsql.php	2010-03-27 12:04:58 UTC (rev 9250)
@@ -140,7 +140,7 @@
 }
 
 /**
- *  db_query() - Query the database, from a file.
+ *  db_query_from_file() - Query the database, from a file.
  *
  *  @param string File that contains the SQL statements.
  *  @param int How many rows do you want returned.




More information about the Fusionforge-commits mailing list