From dd941773a8409c520e690a42efc2e008d42b63c6 Mon Sep 17 00:00:00 2001 From: rxu Date: Sat, 6 Jan 2024 13:42:36 +0700 Subject: [PATCH] Remove redundant language object definition. --- acp/wpn_acp_module.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/acp/wpn_acp_module.php b/acp/wpn_acp_module.php index ad44fa5..ebdadc1 100644 --- a/acp/wpn_acp_module.php +++ b/acp/wpn_acp_module.php @@ -79,8 +79,7 @@ public function main($id, $mode) { if (!check_form_key($form_key)) { - $language = $phpbb_container->get('language'); - trigger_error($language->lang('FORM_INVALID'), E_USER_WARNING); + trigger_error($this->lang->lang('FORM_INVALID'), E_USER_WARNING); } $this->save_settings();