From 53dd5e3d7097cd6202e5110ecd0beaf60bacc5f0 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 28 Aug 2019 23:55:45 +0100 Subject: [PATCH] Add hidden feature to pack.php to return version info as JSON This will be useful for a development version badge. --- pack.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pack.php b/pack.php index 232e7cc..2b8bb43 100644 --- a/pack.php +++ b/pack.php @@ -1,5 +1,13 @@ trim(file_get_contents("https://raw.githubusercontent.com/sbrl/Pepperminty-Wiki/master/version")), + "local_version" => trim(file_get_contents("version")) + ])); +} + /** * Logs a string to stdout, but only on the CLI. * @param string $line The line to log.