mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-24 00:42:43 +00:00
Fix warning glyphicons not being shown when translated
This commit is contained in:
parent
126517a985
commit
f110eb7f5b
@ -289,15 +289,15 @@ class Page {
|
||||
echo "<tr>";
|
||||
foreach ($array as $header => $text) {
|
||||
$style = "";
|
||||
if ($header === "Reason") {
|
||||
if ($header === $this->lang->bans_reason || $header === $this->lang->mutes_reason || $header === $this->lang->warns_reason || $header == $this->lang->kicks_reason) {
|
||||
$style = "style=\"width: 30%;\"";
|
||||
if ($text === "") {
|
||||
$text = "-";
|
||||
}
|
||||
}
|
||||
$a = "a";
|
||||
if ($header === "Received Warning") {
|
||||
$icon = ($text !== "No") ? "glyphicon-ok" : "glyphicon-remove";
|
||||
if ($header === $this->lang->warns_receive) {
|
||||
$icon = ($text !== $this->lang->warns_no) ? "glyphicon-ok" : "glyphicon-remove";
|
||||
$a .= " class=\"glyphicon $icon\" aria-hidden=true";
|
||||
$text = "";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user