From 683b07bb1ff46bf8dd4fd395a99c781e984ce132 Mon Sep 17 00:00:00 2001 From: Jens Hausdorf Date: Fri, 5 Jan 2018 19:30:49 +0100 Subject: [PATCH] code cleanup in user registration --- wcfsetup/install/files/lib/form/RegisterForm.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/form/RegisterForm.class.php b/wcfsetup/install/files/lib/form/RegisterForm.class.php index 17b31dee7b..1d011a1043 100644 --- a/wcfsetup/install/files/lib/form/RegisterForm.class.php +++ b/wcfsetup/install/files/lib/form/RegisterForm.class.php @@ -497,7 +497,7 @@ class RegisterForm extends UserAddForm { // notify admin if (REGISTER_ADMIN_NOTIFICATION) { // get default language - $language = LanguageFactory::getInstance()->getLanguage(LanguageFactory::getInstance()->getDefaultLanguageID()); + $language = LanguageFactory::getInstance()->getDefaultLanguage(); $email = new Email(); $email->addRecipient(new Mailbox(MAIL_ADMIN_ADDRESS, null, $language)); -- 2.20.1