From 2ed14a26ff08d5e7a619d9f046d9bfc133ffd39b Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Sun, 14 May 2017 20:39:13 +0000
Subject: [PATCH] Refactor alert pane

---
 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