[evolvis-commits] r12078: Fix display for size in GB and minor xhtml code

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Feb 24 18:38:27 CET 2011


Author: mirabilos
Date: 2011-02-24 18:38:27 +0100 (Thu, 24 Feb 2011)
New Revision: 12078

Modified:
   trunk/gforge_base/evolvisforge-5.1/gforge/common/include/utils.php
Log:
Fix display for size in GB and minor xhtml code

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 17:38:25 UTC (rev 12077)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/common/include/utils.php	2011-02-24 17:38:27 UTC (rev 12078)
@@ -503,7 +503,7 @@
 			<br /><input type="checkbox" name="'.$name.'" value="'.$i.'"';
 		for ($j=0; $j<$checked_count; $j++) {
 			if ($i == $checked_array[$j]) {
-				echo ' CHECKED';
+				echo ' checked';
 			}
 		}
 		echo '> '.$options[$i];
@@ -855,7 +855,7 @@
 		if ($log < $pow) {
 			continue;
 		}
-		if ($lab == " MB") {
+		if ($lab == " MB" or $lab == " GB") {
 			$round = 2;
 		}
 		$text = round($bytes/pow($base,$pow),$round).$lab;



More information about the evolvis-commits mailing list