mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Move about dialog into separate view and add API endpoint for system info
This commit is contained in:
@@ -14,4 +14,17 @@ class ApplicationService extends BaseService
|
||||
|
||||
return $this->InstalledVersion;
|
||||
}
|
||||
|
||||
public function GetSystemInfo()
|
||||
{
|
||||
$pdo = new \PDO('sqlite::memory:');
|
||||
$sqliteVersion = $pdo->query('SELECT sqlite_version()')->fetch()[0];
|
||||
$pdo = null;
|
||||
|
||||
return array(
|
||||
'grocy_version' => $this->GetInstalledVersion(),
|
||||
'php_version' => phpversion(),
|
||||
'sqlite_version' => $sqliteVersion
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user