mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-07 18:44:26 +02:00
Add admin info to stats Endpoint
This commit is contained in:
parent
e8ab8a84af
commit
7ca4e6e338
4 changed files with 80 additions and 14 deletions
|
@ -188,6 +188,16 @@ class DBStructure
|
|||
return $status;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current status of the Update
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public static function getUpdateStatus(): int
|
||||
{
|
||||
return (int)DI::config()->get('system', 'dbupdate') ?? static::UPDATE_NOT_CHECKED;
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates DB structure from the installation and returns eventual errors messages
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue