[evolvis-commits] r8186: removing deprecated result_column_to_arra?==?UTF-8?Q?y↵

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Feb 24 15:59:25 CET 2011


Author: mirabilos
Date: 2011-02-24 15:59:25 +0100 (Thu, 24 Feb 2011)
New Revision: 8186

Modified:
   trunk/gforge_base/evolvisforge-5.1/gforge/common/forum/Forum.class
   trunk/gforge_base/evolvisforge-5.1/gforge/common/include/utils.php
   trunk/gforge_base/evolvisforge-5.1/gforge/www/admin/approve-pending.php
   trunk/gforge_base/evolvisforge-5.1/gforge/www/include/stats_function.php
   trunk/gforge_base/evolvisforge-5.1/gforge/www/my/diary.php
Log:
removing deprecated result_column_to_array


Modified: trunk/gforge_base/evolvisforge-5.1/gforge/common/forum/Forum.class
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/common/forum/Forum.class	2011-02-24 14:59:24 UTC (rev 8185)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/common/forum/Forum.class	2011-02-24 14:59:25 UTC (rev 8186)
@@ -328,7 +328,7 @@
 	function getMonitoringIDs() {
 		$sql="SELECT user_id FROM forum_monitored_forums WHERE forum_id='".$this->getID()."'";
 		$result=db_query($sql);
-		return result_column_to_array($result);
+		return util_result_column_to_array($result);
 	}
 
 	/**

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/common/include/utils.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/common/include/utils.php	2011-02-24 14:59:24 UTC (rev 8185)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/common/include/utils.php	2011-02-24 14:59:25 UTC (rev 8186)
@@ -246,22 +246,6 @@
 }
 
 /**
- * result_column_to_array() - DEPRECATED; DO NOT USE!
- *
- * @param		int		The result set ID
- * @param		int		The column
- * @see util_result_column_to_array()
- * @deprecated
- *
- */
-function &result_column_to_array($result, $col=0) {
-	/*
-		backwards compatibility
-	*/
-	return util_result_column_to_array($result, $col);
-}
-
-/**
  * util_wrap_find_space() - Find the first space in a string
  *
  * @param		string	The string in which to find the space

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/admin/approve-pending.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/admin/approve-pending.php	2011-02-24 14:59:24 UTC (rev 8185)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/admin/approve-pending.php	2011-02-24 14:59:25 UTC (rev 8186)
@@ -172,7 +172,7 @@
 }
 
 //list of group_id's of pending projects
-$arr=result_column_to_array($res_grp,0);
+$arr=util_result_column_to_array($res_grp,0);
 $group_list=implode($arr,',');
 
 echo '

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/include/stats_function.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/include/stats_function.php	2011-02-24 14:59:24 UTC (rev 8185)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/include/stats_function.php	2011-02-24 14:59:25 UTC (rev 8186)
@@ -80,7 +80,7 @@
 	} else {
 		$count=array();
 		$dates=array();
-		$count=result_column_to_array($result,1);
+		$count=util_result_column_to_array($result,1);
 
 		for ($i=0;$i<$rows;$i++) {
 			//convert the dates and add to an array
@@ -103,7 +103,7 @@
 	} else {
 		$count=array();
 		$dates=array();
-		$count=result_column_to_array($result,1);
+		$count=util_result_column_to_array($result,1);
 
 		for ($i=0;$i<$rows;$i++) {
 			//convert the dates and add to an array

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/my/diary.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/my/diary.php	2011-02-24 14:59:24 UTC (rev 8185)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/my/diary.php	2011-02-24 14:59:25 UTC (rev 8186)
@@ -56,7 +56,7 @@
 					$rows=db_numrows($result);
 
 					if ($result && $rows > 0) {
-						$tolist=implode(result_column_to_array($result),', ');
+						$tolist=implode(util_result_column_to_array($result),', ');
 
 						$to = ''; // send to noreply@
 						$subject = "[ SF User Notes: ". $u->getRealName() ."] ".stripslashes($summary);



More information about the evolvis-commits mailing list