From a552f105cddacb9f1d0cc00b6fd774abe6f3ec77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9drix?= Date: Fri, 15 May 2026 09:42:30 +0200 Subject: [PATCH] =?UTF-8?q?fix=20:=20masquer=20bouton=20V=C3=A9rifier=20si?= =?UTF-8?q?=20FOLIO=5FREPO=5FURL=20non=20configur=C3=A9,=20message=20expli?= =?UTF-8?q?catif?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- templates/admin.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/admin.php b/templates/admin.php index 73c19da..f67f3be 100644 --- a/templates/admin.php +++ b/templates/admin.php @@ -106,6 +106,7 @@ function adminStatusBadge(array $a, int $now): string $_notices = isset($_updateChecker) ? $_updateChecker->adminNotices() : []; $_branch = isset($_updateChecker) ? $_updateChecker->getBranch() : 'main'; $_lastChecked = isset($_updateChecker) ? $_updateChecker->getLastChecked() : null; + $_repoConfigured = (($_ENV['FOLIO_REPO_URL'] ?? getenv('FOLIO_REPO_URL') ?: '') !== ''); $_remoteLabel = '—'; foreach ($_notices as $_n) { if ($_n['type'] === 'info' && preg_match('/v([\d]+\.[\d]+\.[\d]+)/', $_n['message'], $_m)) { @@ -126,9 +127,13 @@ function adminStatusBadge(array $a, int $now): string Dernière version disponible Mise à jour disponible' : '' ?> +
+ + (FOLIO_REPO_URL non configuré) +