Include OS and client information in easy error info copy/paste and on the about dialog

This commit is contained in:
Bernd Bestel
2021-09-20 20:16:41 +02:00
parent b9fff4954a
commit c06bb7784a
5 changed files with 14 additions and 4 deletions

View File

@@ -71,7 +71,9 @@ class ApplicationService extends BaseService
return [
'grocy_version' => $this->GetInstalledVersion(),
'php_version' => phpversion(),
'sqlite_version' => $sqliteVersion
'sqlite_version' => $sqliteVersion,
'os' => php_uname('s') . ' ' . php_uname('r') . ' ' . php_uname('v') . ' ' . php_uname('m'),
'client' => isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : 'unknown'
];
}