From 1af076c3fd82f5b933121f21a85f0c98cb315290 Mon Sep 17 00:00:00 2001 From: isUnknown Date: Sun, 12 Apr 2026 08:20:18 +0200 Subject: [PATCH] =?UTF-8?q?Rename=20soutien=20=E2=86=92=20support=20(Engli?= =?UTF-8?q?sh=20naming=20convention)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - getSoutenirContent() → getContent() - SOUTIEN_API_TOKEN → SUPPORT_API_TOKEN - API URL : api/soutien-content → api/support-content Co-Authored-By: Claude Opus 4.6 --- en/index.php | 2 +- includes/cache.php | 6 +++--- includes/config.php | 4 ++-- index.php | 2 +- merci/index.php | 2 +- thanks/index.php | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/en/index.php b/en/index.php index d26de2b..d43d93a 100644 --- a/en/index.php +++ b/en/index.php @@ -1,6 +1,6 @@ diff --git a/includes/cache.php b/includes/cache.php index 9514a4f..c97a146 100644 --- a/includes/cache.php +++ b/includes/cache.php @@ -2,7 +2,7 @@ require_once __DIR__ . '/config.php'; -function getSoutenirContent(string $lang = 'fr'): array { +function getContent(string $lang = 'fr'): array { $cacheFile = CACHE_DIR . "/content.{$lang}.json"; // Serve cache if fresh @@ -12,8 +12,8 @@ function getSoutenirContent(string $lang = 'fr'): array { // Fetch from Kirby API $url = KIRBY_API_URL . '?lang=' . urlencode($lang); - if (SOUTIEN_API_TOKEN) { - $url .= '&token=' . urlencode(SOUTIEN_API_TOKEN); + if (SUPPORT_API_TOKEN) { + $url .= '&token=' . urlencode(SUPPORT_API_TOKEN); } $context = stream_context_create([ diff --git a/includes/config.php b/includes/config.php index 5f4447f..98d4ce3 100644 --- a/includes/config.php +++ b/includes/config.php @@ -1,6 +1,6 @@ diff --git a/merci/index.php b/merci/index.php index 64c6c58..4a4d93f 100644 --- a/merci/index.php +++ b/merci/index.php @@ -1,6 +1,6 @@ diff --git a/thanks/index.php b/thanks/index.php index 045f307..7dd44ae 100644 --- a/thanks/index.php +++ b/thanks/index.php @@ -1,6 +1,6 @@