Skip to content

Firefly III: a personal finances manager

Add buildnr to debug form.

James Colef7125d6198c9
diff --git a/app/Http/Controllers/DebugController.php b/app/Http/Controllers/DebugController.php
index f601a61ea4..e98575424c 100644
--- a/app/Http/Controllers/DebugController.php
+++ b/app/Http/Controllers/DebugController.php
@@ -144,6 +144,15 @@ class DebugController extends Controller
$bcscale = bcscale();
$layout = env('FIREFLY_III_LAYOUT');
$tz = env('TZ');
+ $buildNr = '(unknown)';
+ $buildDate = '(unknown)';
+
+ if (file_exists('/var/www/counter-main.txt')) {
+ $buildNr = file_get_contents('/var/www/counter-main.txt');
+ }
+ if (file_exists('/var/www/build-date-main.txt')) {
+ $buildDate = file_get_contents('/var/www/build-date-main.txt');
+ }
// expected + found DB version:
$expectedDBversion = config('firefly.db_version');
@@ -206,6 +215,8 @@ class DebugController extends Controller
'drivers',
'currentDriver',
'loginProvider',
+ 'buildNr',
+ 'buildDate',
'bcscale',
'layout',
'userAgent',
diff --git a/resources/views/debug.twig b/resources/views/debug.twig
index 3907218ced..fb091fdbae 100644
--- a/resources/views/debug.twig
+++ b/resources/views/debug.twig
@@ -17,6 +17,7 @@ Debug information generated at {{ now }} for Firefly III version **{{ FF_VERSION
| --- | --- |
| Firefly III | {{ FF_VERSION }} |
| Firefly III API | {{ config('firefly.api_version') }} |
+| Build | {{ buildNr}}, {{ buildDate }} |
| PHP | {{ phpVersion }} |
| Host | {{ phpOs }} |