From d8fec04d81e7a4532a39aaf24c48131fe13679d2 Mon Sep 17 00:00:00 2001 From: Wruczek Date: Sun, 30 Dec 2018 04:27:43 +0100 Subject: [PATCH] Added a shortened commit hash along the version The commit value is replaced when building the zip file --- src/installer/pages/1.php | 7 ++++++- src/installer/pages/7.php | 1 + src/private/php/constants.php | 1 + src/private/templates/body.latte | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/installer/pages/1.php b/src/installer/pages/1.php index 935c3ef..880dbad 100644 --- a/src/installer/pages/1.php +++ b/src/installer/pages/1.php @@ -117,7 +117,12 @@
-

Welcome to TS-website Installer!

+

Welcome to TS-website Installer!

+ +

+ Version () +

+

This wizard will guide you through the installation process of TS-website.

Please enable Javascript before continuing!

diff --git a/src/installer/pages/7.php b/src/installer/pages/7.php index 1d900de..0d89c00 100644 --- a/src/installer/pages/7.php +++ b/src/installer/pages/7.php @@ -13,6 +13,7 @@ if(!empty($_COOKIE["tsw_allow_metrics"])) { $data = [ "tswVersion" => __TSWEBSITE_VERSION, + "tswCommit" => __TSWEBSITE_COMMIT, "phpVersion" => PHP_VERSION, "os" => sprintf("%s %s %s %s", php_uname("s"), php_uname("r"), php_uname("v"), php_uname("m")), // no hostname "webServer" => $_SERVER["SERVER_SOFTWARE"], diff --git a/src/private/php/constants.php b/src/private/php/constants.php index acb816b..a2aeabd 100644 --- a/src/private/php/constants.php +++ b/src/private/php/constants.php @@ -1,5 +1,6 @@