mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 20:26:42 +00:00
Changed how version information is stored and displayed
This commit is contained in:
@@ -13,14 +13,11 @@ class ApplicationService extends BaseService
|
||||
}
|
||||
|
||||
private $InstalledVersion;
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function GetInstalledVersion()
|
||||
{
|
||||
if ($this->InstalledVersion == null)
|
||||
{
|
||||
$this->InstalledVersion = preg_replace("/\r|\n/", '', file_get_contents(__DIR__ . '/../version.txt'));
|
||||
$this->InstalledVersion = json_decode(file_get_contents(__DIR__ . '/../version.json'));
|
||||
}
|
||||
|
||||
return $this->InstalledVersion;
|
||||
|
Reference in New Issue
Block a user