mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-16 19:40:44 +01:00
Miglioramento di compatibilità
Miglioramento di compatibilità della versione visualizzata: se il file VERSION non esiste (release non ufficiale), viene utilizzata la versione a database.
This commit is contained in:
parent
04b44df970
commit
f165a8035b
@ -202,7 +202,13 @@ class Update
|
||||
*/
|
||||
public static function getVersion()
|
||||
{
|
||||
return self::getFile('VERSION');
|
||||
$result = self::getFile('VERSION');
|
||||
|
||||
if (empty($result)) {
|
||||
$result = self::getDatabaseVersion();
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user