fix: address code review comments (spelling, add comment to renewable_statuses)
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/c56f04bb-ecce-4f1b-9bbd-c5f83107da1d Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
2f62bd32c9
commit
cb9c54b858
3 changed files with 5 additions and 2 deletions
|
|
@ -338,6 +338,9 @@ $status_config = [
|
|||
<div class="server-actions">
|
||||
<?php
|
||||
// Show Renew action for servers that can be renewed
|
||||
// Status comparison is case-insensitive (strtolower). Canonical
|
||||
// values are 'Active' and 'Invoiced'; legacy values are included
|
||||
// as a fallback until normalize_billing_order_status.sql has run.
|
||||
$renewable_statuses = array('active','invoiced','paid','installed','suspended');
|
||||
if (!empty($server['status']) && in_array(strtolower($server['status']), $renewable_statuses)): ?>
|
||||
<a href="renew_server.php?order_id=<?php echo intval($server['order_id']); ?>" class="gsw-btn renew-btn">Renew</a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue