Fix : 500 sur admin/versions.php (PHP imbriqué)

Mon edit v0.26.0 avait laissé un <?php à l'intérieur d'un bloc PHP déjà
ouvert. Erreur de syntaxe → 500. Refactor pour fermer le bloc PHP
proprement après Layout::header() avant de basculer sur le HTML.

Vérifié avec php -l (XAMPP) : « No syntax errors detected ».

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-05 08:06:12 +02:00
parent 9499c6ae58
commit 2b95472393

View File

@@ -267,11 +267,11 @@ foreach ($manifest['versions'] ?? [] as $v) {
$existingNotes[$v['version']] = is_file($f) ? file_get_contents($f) : ''; $existingNotes[$v['version']] = is_file($f) ? file_get_contents($f) : '';
} }
<?php
$existingChannels = listExistingChannels($manifestDir); $existingChannels = listExistingChannels($manifestDir);
$channelLabel = $channel === '' ? 'default' : $channel; $channelLabel = $channel === '' ? 'default' : $channel;
Layout::header('Versions', 'versions');
?> ?>
<?php Layout::header('Versions', 'versions'); ?>
<h1>Versions <span class="muted" style="font-size: 14px; font-weight: normal;">— channel actif : <code style="background: rgba(0,0,0,0.3); padding: 2px 8px; border-radius: 4px;"><?= htmlspecialchars($channelLabel) ?></code></span></h1> <h1>Versions <span class="muted" style="font-size: 14px; font-weight: normal;">— channel actif : <code style="background: rgba(0,0,0,0.3); padding: 2px 8px; border-radius: 4px;"><?= htmlspecialchars($channelLabel) ?></code></span></h1>
<?php Layout::flash($message, $messageType); ?> <?php Layout::flash($message, $messageType); ?>