From be7703f1bd15e73ef41f8cbcbd217c9893771bf3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 26 Jul 2021 16:44:59 +0200 Subject: [PATCH] Add notice letting the user know quitting their account is active --- com.woltlab.wcf/templates/userNotice.tpl | 4 ++++ wcfsetup/install/lang/de.xml | 1 + wcfsetup/install/lang/en.xml | 1 + 3 files changed, 6 insertions(+) diff --git a/com.woltlab.wcf/templates/userNotice.tpl b/com.woltlab.wcf/templates/userNotice.tpl index a30c4ecd5f..77c922ab0c 100644 --- a/com.woltlab.wcf/templates/userNotice.tpl +++ b/com.woltlab.wcf/templates/userNotice.tpl @@ -5,6 +5,10 @@
{if OFFLINE_MESSAGE_ALLOW_HTML}{@OFFLINE_MESSAGE|language}{else}{@OFFLINE_MESSAGE|language|newlineToBreak}{/if}
{/if} + + {if $templateName != 'accountManagement' && $__wcf->user->userID && $__wcf->user->quitStarted > 0} +

{lang}wcf.user.quit.active{/lang}

+ {/if} {if $__wcf->session->getPermission('admin.configuration.package.canUpdatePackage') && $__wcf->getAvailableUpdates() && SHOW_UPDATE_NOTICE_FRONTEND}

{lang}wcf.page.availableUpdates{/lang}

diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 7778c5001c..75f68dda10 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -4691,6 +4691,7 @@ dann wird diese Anfrage am {$mailbox->getUser()->lastLostPasswordRequestTime+864 + user->quitStarted+7*86400|date} gelöscht. Bis dahin {if LANGUAGE_USE_INFORMAL_VARIANT}kannst du{else}können Sie{/if} die Löschung in der Benutzerkonto-Verwaltung abbrechen.]]> diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index af7bfe5267..15f057d10b 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -4689,6 +4689,7 @@ the website {@PAGE_TITLE|language}. + user->quitStarted+7*86400|date}. During this time period you can abort the deletion within the Account Management Form.]]> -- 2.20.1