From dd1e1aaaad6105d0e227e4bd878ce16d2998cd98 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 3 Apr 2023 16:59:36 +0200 Subject: [PATCH] Fix pageAddDialog.tpl if only one language is enabled Fixes #5383 --- wcfsetup/install/files/acp/templates/pageAddDialog.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/acp/templates/pageAddDialog.tpl b/wcfsetup/install/files/acp/templates/pageAddDialog.tpl index e6ec2e09d3..50059764e5 100644 --- a/wcfsetup/install/files/acp/templates/pageAddDialog.tpl +++ b/wcfsetup/install/files/acp/templates/pageAddDialog.tpl @@ -31,7 +31,7 @@ const pageAddDialog = new AcpUiPageAdd( '{link controller='PageAdd' encode=false}{literal}pageType={$pageType}&isMultilingual={$isMultilingual}{/literal}{/link}', - {if $availableLanguages|count > 0}true{else}false{/if} + {if $availableLanguages|count > 1}true{else}false{/if} ); {if $showPageAddDialog} -- 2.20.1