From 9e2a87f448b508cbb7076144c0df7ddd0229631c Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 25 Aug 2023 17:09:31 +0200 Subject: [PATCH] Add forgotten prefix for some settings --- system/pages/account/change_email.php | 2 +- system/pages/account/create.php | 6 +++--- system/templates/account.create.html.twig | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/system/pages/account/change_email.php b/system/pages/account/change_email.php index 95ce48fc..4168131c 100644 --- a/system/pages/account/change_email.php +++ b/system/pages/account/change_email.php @@ -43,7 +43,7 @@ if($email_new_time < 10) { } if(empty($errors)) { - $email_new_time = time() + setting('account_mail_change') * 24 * 3600; + $email_new_time = time() + setting('core.account_mail_change') * 24 * 3600; $account_logged->setCustomField("email_new", $email_new); $account_logged->setCustomField("email_new_time", $email_new_time); $twig->display('success.html.twig', array( diff --git a/system/pages/account/create.php b/system/pages/account/create.php index aff92145..5775855f 100644 --- a/system/pages/account/create.php +++ b/system/pages/account/create.php @@ -211,8 +211,8 @@ if($save) } } - if(setting('account_premium_points') && setting('account_premium_points') > 0) { - $new_account->setCustomField('premium_points', setting('account_premium_points')); + if(setting('core.account_premium_points') && setting('core.account_premium_points') > 0) { + $new_account->setCustomField('premium_points', setting('core.account_premium_points')); } $tmp_account = $email; @@ -295,7 +295,7 @@ if($save) 'custom_buttons' => setting('core.account_create_character_create') ? '' : null )); - if(setting('core.mail_enabled') && setting('account_welcome_mail')) + if(setting('core.mail_enabled') && setting('core.account_welcome_mail')) { $mailBody = $twig->render('account.welcome_mail.html.twig', array( 'account' => $tmp_account diff --git a/system/templates/account.create.html.twig b/system/templates/account.create.html.twig index 290809c3..5f9ea910 100644 --- a/system/templates/account.create.html.twig +++ b/system/templates/account.create.html.twig @@ -59,7 +59,7 @@ {% if errors.email is defined %}{{ errors.email }}{% endif %} - {% if setting('core.mail_enabled') and setting('account_mail_verify') %} + {% if setting('core.mail_enabled') and setting('core.account_mail_verify') %} Please use real address!
We will send a link to validate your Email.
{% endif %} @@ -122,7 +122,7 @@ {{ hook('HOOK_ACCOUNT_CREATE_BETWEEN_BOXES_1') }} - {% if (not setting('core.mail_enabled') or not setting('core.account_mail_verify')) and setting('account_create_character_create') %} + {% if (not setting('core.mail_enabled') or not setting('core.account_mail_verify')) and setting('core.account_create_character_create') %}