From 28a0531f861a21268c107dc9411518e3bcbb42d6 Mon Sep 17 00:00:00 2001 From: ruan Date: Tue, 27 Sep 2016 08:28:09 +0200 Subject: [PATCH] Use {name} rather than $name --- inc/page.php | 2 +- lang/cs_CZ.utf8.php | 4 ++-- lang/en_US.utf8.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/inc/page.php b/inc/page.php index efe524f..a81f484 100644 --- a/inc/page.php +++ b/inc/page.php @@ -279,7 +279,7 @@ class Page { $name = $this->clean($row['removed_by_name']); } if ($name !== null) { - $until .= str_replace('$name', $name, $this->expired_by[$this->type]); + $until .= str_replace('{name}', $name, $this->expired_by[$this->type]); $done = true; } } diff --git a/lang/cs_CZ.utf8.php b/lang/cs_CZ.utf8.php index 2e3cf82..a4f7bca 100644 --- a/lang/cs_CZ.utf8.php +++ b/lang/cs_CZ.utf8.php @@ -14,9 +14,9 @@ class Lang { $this->page_perm_mute = 'Umlčen navždy'; $this->page_perm_warn = 'Trvalé varování'; $this->page_expire_ban = '(Odbanován)'; - $this->page_expire_ban_by = '(Odbanován kým $name)'; + $this->page_expire_ban_by = '(Odbanován kým {name})'; $this->page_expire_mute = '(Odmlčen)'; - $this->page_expire_mute_by = '(Odmlčen kým $name)'; + $this->page_expire_mute_by = '(Odmlčen kým {name})'; $this->page_expire = '(Vypršel)'; $this->page_title_ban = 'Bany'; $this->page_title_mute = 'Umlčení'; diff --git a/lang/en_US.utf8.php b/lang/en_US.utf8.php index a00e67f..429c0f8 100644 --- a/lang/en_US.utf8.php +++ b/lang/en_US.utf8.php @@ -16,9 +16,9 @@ class Lang { $this->page_perm_mute = 'Permanent Mute'; $this->page_perm_warn = 'Permanent'; $this->page_expire_ban = '(Unbanned)'; - $this->page_expire_ban_by = '(Unbanned by $name)'; + $this->page_expire_ban_by = '(Unbanned by {name})'; $this->page_expire_mute = '(Unmuted)'; - $this->page_expire_mute_by = '(Unmuted by $name)'; + $this->page_expire_mute_by = '(Unmuted by {name})'; $this->page_expire = '(Expired)'; $this->page_title_ban = 'Bans'; $this->page_title_mute = 'Mutes';