From f110eb7f5bf697635d7d211b3615333bd181a930 Mon Sep 17 00:00:00 2001 From: ruan Date: Mon, 11 Apr 2016 09:02:14 +0200 Subject: [PATCH] Fix warning glyphicons not being shown when translated --- inc/page.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/page.php b/inc/page.php index 88fac6f..6cd5de6 100644 --- a/inc/page.php +++ b/inc/page.php @@ -289,15 +289,15 @@ class Page { echo ""; 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 = ""; }