[evolvis-commits] r15636: Applied patch [#191] getSize() and getPostDate() methods in FRS are wrong

mirabilos at evolvis.org mirabilos at evolvis.org
Tue Mar 1 00:22:18 CET 2011


Author: mirabilos
Date: 2011-03-01 00:22:18 +0100 (Tue, 01 Mar 2011)
New Revision: 15636

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/common/frs/FRSFile.class.php
Log:
Applied patch [#191] getSize() and getPostDate() methods in FRS are wrong

Modified: trunk/gforge_base/evolvisforge-5.1/src/common/frs/FRSFile.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/common/frs/FRSFile.class.php	2011-02-28 23:22:16 UTC (rev 15635)
+++ trunk/gforge_base/evolvisforge-5.1/src/common/frs/FRSFile.class.php	2011-02-28 23:22:18 UTC (rev 15636)
@@ -246,7 +246,7 @@
 	 *  @return int	The size.
 	 */
 	function getSize() {
-		return $this->data_array['size'];
+		return $this->data_array['file_size'];
 	}
 
 	/**
@@ -304,12 +304,12 @@
 	}
 
 	/**
-	 *  getPostDate - get the post time of this file.
+	 *  getPostDate - get the post date of this file.
 	 *
-	 *  @return int	The post time in unix time.
+	 *  @return int	The post date in unix time.
 	 */
 	function getPostDate() {
-		return $this->data_array['post_time'];
+		return $this->data_array['post_date'];
 	}
 
 	/**



More information about the evolvis-commits mailing list