mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-08-29 09:16:15 +00:00
Add buildnr to debug form.
This commit is contained in:
@@ -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',
|
||||
|
@@ -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 }} |
|
||||
|
||||
|
Reference in New Issue
Block a user