Ajoute les mises à jour autonomes
Les installations hors YunoHost peuvent désormais vérifier et installer une release Forgejo avec sauvegarde et retour arrière complet.
This commit is contained in:
parent
f41504c852
commit
53e79a72d7
25 changed files with 1146 additions and 61 deletions
|
|
@ -18,6 +18,11 @@ $accountingActive = str_starts_with($currentPath, '/accounting');
|
|||
$settingsActive = str_starts_with($currentPath, '/settings');
|
||||
$settingsMenuLinks = settingsNavigationLinks();
|
||||
$currentUser = Auth::user();
|
||||
$updateStatus = ['available' => false];
|
||||
if (Auth::is('admin') && class_exists(UpdateService::class)) {
|
||||
$updateStatus = UpdateService::refreshIfDue();
|
||||
}
|
||||
$updateAvailable = (bool) ($updateStatus['available'] ?? false);
|
||||
$pageName = trim((string)($title ?? ''));
|
||||
$documentTitle = $pageName !== '' ? $pageName . ' — Globinours' : 'Globinours';
|
||||
$pageDescription = trim((string)($pageDescription ?? ''));
|
||||
|
|
|
|||
Loading…
Reference in a new issue