From a252b0a80bd0f71f567520e566c4429fb8ecd272 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Sun, 14 May 2017 20:55:49 +0000 Subject: [PATCH] Add attributions to the map --- version.php | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/version.php b/version.php index 569683e..a518c36 100644 --- a/version.php +++ b/version.php @@ -1,2 +1,9 @@ <?php -echo max(array_map('filemtime', glob('*.{html,js,css}', GLOB_NOSORT|GLOB_BRACE))); +$files = glob('*.{html,js,css}', GLOB_NOSORT|GLOB_BRACE); + +echo json_encode( + array_combine( + $files, + array_map('filemtime', $files) + ) +); -- Gitblit v1.9.1