gforge-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gforge-commits] gforge/www/frs index.php,1.2,1.3


From: tom
Subject: [Gforge-commits] gforge/www/frs index.php,1.2,1.3
Date: Wed, 30 Jun 2004 13:11:54 -0500

Update of /cvsroot/gforge/gforge/www/frs
In directory db.perdue.net:/tmp/cvs-serv2698/www/frs

Modified Files:
        index.php 
Log Message:
Applied patch #808: Human-Readable Filesizes

Index: index.php
===================================================================
RCS file: /cvsroot/gforge/gforge/www/frs/index.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- index.php   17 Feb 2004 14:57:15 -0000      1.2
+++ index.php   30 Jun 2004 18:11:51 -0000      1.3
@@ -151,7 +151,7 @@
                                                . $file_release['filename'] 
.'</a>',
                                                'colspan=3');
                                                
-                                       $cell_data[] = 
array($file_release['file_size'],'align="right"');
+                                       $cell_data[] = 
array(human_readable_bytes($file_release['file_size']),'align="right"');
                                        $cell_data[] = array( 
($file_release['downloads'] ? number_format($file_release['downloads'], 0) : 
'0'), 'align="right"');
                                        $cell_data[] = 
array($file_release['processor']);
                                        $cell_data[] = 
array($file_release['type']);
@@ -172,7 +172,7 @@
        print 
'<tr><td><strong>'.$Language->getText('project_showfiles','project_totals').'</strong></td>'
                . '<td align="right"><strong><em>' . $proj_stats['releases'] . 
'</em></strong></td>'
                . '<td align="right"><strong><em>' . $proj_stats['files'] . 
'</em></strong></td>'
-               . '<td align="right"><strong><em>' . $proj_stats['size'] . 
'</em></strong></td>'
+               . '<td align="right"><strong><em>' . 
human_readable_bytes($proj_stats['size']) . '</em></strong></td>'
                . '<td align="right"><strong><em>' . $proj_stats['downloads'] . 
'</em></strong></td>'
                . '<td colspan="3">&nbsp;</td></tr>'."\n";
 }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]