diff --git a/admin/users.php b/admin/users.php index a1b670c..0ffdca5 100755 --- a/admin/users.php +++ b/admin/users.php @@ -25,7 +25,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { header('Location: users.php'); exit; } else { - $error = 'El usuario ya existe'; + $error = t('El usuario ya existe'); } } @@ -37,7 +37,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { header('Location: users.php'); exit; } else { - $error = 'No puedes eliminarte a ti mismo'; + $error = t('No puedes eliminarte a ti mismo'); } } } @@ -46,9 +46,9 @@ require_once __DIR__ . '/../templates/header.php'; ?>
| ID | -Usuario | -Rol | += t('ID') ?> | += t('Usuario') ?> | += t('Rol') ?> | Telegram | -Creado | -Acciones | += t('Creado') ?> | += t('Acciones') ?> | = htmlspecialchars($user['username']) ?> | - = $user['role'] ?> + = $user['role'] === 'admin' ? t('Administrador') : t('Usuario') ?> | = $user['telegram_chat_id'] ? htmlspecialchars($user['telegram_chat_id']) : '-' ?> | = date('d/m/Y', strtotime($user['created_at'])) ?> | - |
|---|