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:
@@ -267,11 +267,11 @@ foreach ($manifest['versions'] ?? [] as $v) {
|
||||
$existingNotes[$v['version']] = is_file($f) ? file_get_contents($f) : '';
|
||||
}
|
||||
|
||||
<?php
|
||||
$existingChannels = listExistingChannels($manifestDir);
|
||||
$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>
|
||||
|
||||
<?php Layout::flash($message, $messageType); ?>
|
||||
|
||||
Reference in New Issue
Block a user