Commit:    87edc32d5d1b942c9309cc16c1afe63a4351d220
Author:    Christoph M. Becker <cmbecke...@gmx.de>         Sat, 6 Jul 2019 
12:06:29 +0200
Parents:   086a584d3e768027b00a31bbf2e0b2360862ec48
Branches:  master

Link:       
http://git.php.net/?p=web/windows.git;a=commitdiff;h=87edc32d5d1b942c9309cc16c1afe63a4351d220

Log:
Right align file sizes

Changed paths:
  M  include/listing.php


Diff:
diff --git a/include/listing.php b/include/listing.php
index e34b14f..7c54ec9 100644
--- a/include/listing.php
+++ b/include/listing.php
@@ -299,7 +299,7 @@ function generate_latest_html_piece($fname, $ts, $size, 
$ver, $cur_ver)
 
        return str_replace(
                array("DATETIME", "SIZE", "FNAME"),
-               array(date("m/d/Y h:i A", $ts), (int)$size, $fn),
+               array(date("m/d/Y h:i A", $ts), str_pad((int)$size, 8, ' ', 
STR_PAD_LEFT), $fn),
                $tpl
        );
 }


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to