From b9b5abfb90c5d8a6fc5b03d3fc0bbefa181eda36 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 22 Aug 2023 10:32:48 +0200 Subject: [PATCH] Fix the condition to detect multiple languages for boxes See https://www.woltlab.com/community/thread/301293-box-erstellen-html-text-template-funktioniert-nicht/ --- wcfsetup/install/files/acp/templates/boxAddDialog.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/acp/templates/boxAddDialog.tpl b/wcfsetup/install/files/acp/templates/boxAddDialog.tpl index b3dae28a81..4e9b19abe4 100644 --- a/wcfsetup/install/files/acp/templates/boxAddDialog.tpl +++ b/wcfsetup/install/files/acp/templates/boxAddDialog.tpl @@ -33,7 +33,7 @@ const boxAddDialog = new AcpUiBoxAdd( '{link controller='BoxAdd' encode=false}{literal}boxType={$boxType}&isMultilingual={$isMultilingual}{/literal}{/link}', - {if $availableLanguages|count > 0}true{else}false{/if} + {if $availableLanguages|count > 1}true{else}false{/if} ); {if $showBoxAddDialog} -- 2.20.1