Rename soutien → support (English naming convention)
- getSoutenirContent() → getContent() - SOUTIEN_API_TOKEN → SUPPORT_API_TOKEN - API URL : api/soutien-content → api/support-content Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
322d9136b6
commit
1af076c3fd
6 changed files with 9 additions and 9 deletions
|
|
@ -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([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue