update pharext
[m6w6/replicator] / public / index.php
index f06e94e9fd0d8787589447de92241ac38737d86c..639f1e2238881cd05222a21964538ad4c87051d3 100644 (file)
                                                <?php foreach ($phars as $ext => list($phar, $meta)) : ?>
                                                <td class="text-left">
                                                        <a href="<?= htmlspecialchars($phar) ?>"
-                                                          >ext.phar<?= htmlspecialchars($ext) ?></a>
+                                                          >ext.phar<?= htmlspecialchars($ext) ?></a><br>
                                                        <small><?php
 
                                                        $u = ["Bytes", "KB", "MB"];
 
                                                        $time = time();
                                                        $dsec = 86400;
-                                                       $lmod = filemtime($phar);
+                                                       $lmod = isset($meta["date"]) ? strtotime($meta["date"]) : filemtime($phar);
                                                        $days = [1 => "today", "yesterday"];
                                                        do {
                                                                for ($i = 1; $i < 7; ++$i) {