From dc72c6dced50095b7dc062fd55538c436888c715 Mon Sep 17 00:00:00 2001 From: tokumeikoi Date: Wed, 19 Oct 2022 13:50:52 +0800 Subject: [PATCH] update: compatible --- app/Http/Controllers/Guest/CommController.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/Http/Controllers/Guest/CommController.php b/app/Http/Controllers/Guest/CommController.php index 165a486f..181134bd 100644 --- a/app/Http/Controllers/Guest/CommController.php +++ b/app/Http/Controllers/Guest/CommController.php @@ -23,6 +23,19 @@ class CommController extends Controller 'app_description' => config('v2board.app_description'), 'app_url' => config('v2board.app_url'), 'logo' => config('v2board.logo'), + + // TODO:REMOVE:1.7.0 + + 'tosUrl' => config('v2board.tos_url'), + 'isEmailVerify' => (int)config('v2board.email_verify', 0) ? 1 : 0, + 'isInviteForce' => (int)config('v2board.invite_force', 0) ? 1 : 0, + 'emailWhitelistSuffix' => (int)config('v2board.email_whitelist_enable', 0) + ? $this->getEmailSuffix() + : 0, + 'isRecaptcha' => (int)config('v2board.recaptcha_enable', 0) ? 1 : 0, + 'recaptchaSiteKey' => config('v2board.recaptcha_site_key'), + 'appDescription' => config('v2board.app_description'), + 'appUrl' => config('v2board.app_url'), ] ]); }