com web/windows: Right align file sizes: include/listing.php

From: Date: Sat, 06 Jul 2019 10:06:29 +0000
Subject: com web/windows: Right align file sizes: include/listing.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-28206@lists.php.net to get a copy of this message
Commit: 87edc32d5d1b942c9309cc16c1afe63a4351d220 Author: Christoph M. Becker <cmbecker69@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 ); }

« previous php.webmaster (#28206) next »