[Fusionforge-commits] r9873 - in trunk/gforge/common: forum pm

Roland Mas lolando at libremir.placard.fr.eu.org
Fri May 21 14:22:54 CEST 2010


Author: lolando
Date: 2010-05-21 14:22:54 +0200 (Fri, 21 May 2010)
New Revision: 9873

Modified:
   trunk/gforge/common/forum/ForumFactory.class.php
   trunk/gforge/common/pm/ProjectGroupFactory.class.php
Log:
Debug + removed useless code

Modified: trunk/gforge/common/forum/ForumFactory.class.php
===================================================================
--- trunk/gforge/common/forum/ForumFactory.class.php	2010-05-21 11:38:58 UTC (rev 9872)
+++ trunk/gforge/common/forum/ForumFactory.class.php	2010-05-21 12:22:54 UTC (rev 9873)
@@ -96,11 +96,6 @@
 			return $this->forums;
 		}
 
-		$result = db_query_params ('SELECT * FROM forum_group_list_vw
-WHERE group_id=$1
-ORDER BY group_forum_id',
-					   array ($this->Group->getID())) ;
-
 		$ids = $this->getAllForumIds() ;
 		
 		if (count ($ids) < 1) {
@@ -115,8 +110,7 @@
 		}
 		return $this->forums;
 	}
-	
-	
+		
 	/**
 	 *	getForumsAdmin - get an array of all (public, private and suspended) Forum objects for this Group.
 	 *

Modified: trunk/gforge/common/pm/ProjectGroupFactory.class.php
===================================================================
--- trunk/gforge/common/pm/ProjectGroupFactory.class.php	2010-05-21 11:38:58 UTC (rev 9872)
+++ trunk/gforge/common/pm/ProjectGroupFactory.class.php	2010-05-21 12:22:54 UTC (rev 9873)
@@ -95,11 +95,8 @@
 		if ($this->projectGroups) {
 			return $this->projectGroups;
 		}
-		$result = db_query_params ('SELECT * FROM project_group_list_vw WHERE group_id=$1 ORDER BY group_project_id',
-							   array ($this->Group->getID())) ;
-		$rows = db_numrows($result);
 
-		$ids = $this->getAllArtifactTypeIds() ;
+		$ids = $this->getAllProjectGroupIds() ;
 
 		if (count ($ids) < 1) {
 			$this->setError('None Found '.db_error());




More information about the Fusionforge-commits mailing list