mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-13 07:53:16 +00:00
Add buildnr to debug form.
This commit is contained in:
@@ -144,6 +144,15 @@ class DebugController extends Controller
|
|||||||
$bcscale = bcscale();
|
$bcscale = bcscale();
|
||||||
$layout = env('FIREFLY_III_LAYOUT');
|
$layout = env('FIREFLY_III_LAYOUT');
|
||||||
$tz = env('TZ');
|
$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:
|
// expected + found DB version:
|
||||||
$expectedDBversion = config('firefly.db_version');
|
$expectedDBversion = config('firefly.db_version');
|
||||||
@@ -206,6 +215,8 @@ class DebugController extends Controller
|
|||||||
'drivers',
|
'drivers',
|
||||||
'currentDriver',
|
'currentDriver',
|
||||||
'loginProvider',
|
'loginProvider',
|
||||||
|
'buildNr',
|
||||||
|
'buildDate',
|
||||||
'bcscale',
|
'bcscale',
|
||||||
'layout',
|
'layout',
|
||||||
'userAgent',
|
'userAgent',
|
||||||
|
@@ -17,6 +17,7 @@ Debug information generated at {{ now }} for Firefly III version **{{ FF_VERSION
|
|||||||
| --- | --- |
|
| --- | --- |
|
||||||
| Firefly III | {{ FF_VERSION }} |
|
| Firefly III | {{ FF_VERSION }} |
|
||||||
| Firefly III API | {{ config('firefly.api_version') }} |
|
| Firefly III API | {{ config('firefly.api_version') }} |
|
||||||
|
| Build | {{ buildNr}}, {{ buildDate }} |
|
||||||
| PHP | {{ phpVersion }} |
|
| PHP | {{ phpVersion }} |
|
||||||
| Host | {{ phpOs }} |
|
| Host | {{ phpOs }} |
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user