Commit 855056dc authored by Mahmoud Aglan's avatar Mahmoud Aglan

fix(tournaments): the disconnect wait reads دقيقتين / دقايق

Co-Authored-By: 's avatarClaude Opus 5.5 <noreply@anthropic.com>
parent c8915915
...@@ -275,7 +275,7 @@ foreach ([ ...@@ -275,7 +275,7 @@ foreach ([
<div class="info-item"> <div class="info-item">
<span class="info-label">لو لاعب فصل</span> <span class="info-label">لو لاعب فصل</span>
<?php $dcMin = max(1, (int)round(((int)($tournament['disconnect_grace_seconds'] ?? 120)) / 60)); ?> <?php $dcMin = max(1, (int)round(((int)($tournament['disconnect_grace_seconds'] ?? 120)) / 60)); ?>
<span class="info-value">نستناه <?= $dcMin ?> دقيقة، وبعدها <?= ($tournament['disconnect_outcome'] ?? 'forfeit') === 'draw' ? 'تعادل' : 'يخسر' ?></span> <span class="info-value">نستناه <?= $dcMin === 1 ? 'دقيقة' : ($dcMin === 2 ? 'دقيقتين' : $dcMin . ($dcMin <= 10 ? ' دقايق' : ' دقيقة')) ?>، وبعدها <?= ($tournament['disconnect_outcome'] ?? 'forfeit') === 'draw' ? 'تعادل' : 'يخسر' ?></span>
</div> </div>
<div class="info-item"> <div class="info-item">
<span class="info-label">فتح التسجيل (القاهرة)</span> <span class="info-label">فتح التسجيل (القاهرة)</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment