feat : FOLIO_REPO_URL et branche configurables depuis l'admin (dashboard)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-15 09:44:52 +02:00
parent a552f105cd
commit 4b5943c0a4
4 changed files with 64 additions and 5 deletions
+2 -2
View File
@@ -67,7 +67,7 @@ class UpdateChecker
*/
private function checkRemoteVersion(): ?string
{
$repoUrl = rtrim((string) ($_ENV['FOLIO_REPO_URL'] ?? getenv('FOLIO_REPO_URL') ?: ''), '/');
$repoUrl = folioRepoUrl();
if ($repoUrl === '') {
return null;
}
@@ -91,7 +91,7 @@ class UpdateChecker
public function getBranch(): string
{
return (string) ($_ENV['FOLIO_UPDATE_BRANCH'] ?? getenv('FOLIO_UPDATE_BRANCH') ?: 'main');
return folioUpdateBranch();
}
public function getLastChecked(): ?int