Fix pageAddDialog.tpl if only one language is enabled
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 3 Apr 2023 14:59:36 +0000 (16:59 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 3 Apr 2023 14:59:36 +0000 (16:59 +0200)
Fixes #5383

wcfsetup/install/files/acp/templates/pageAddDialog.tpl

index e6ec2e09d367bc95905a31ed79c7161677c38f5f..50059764e5de2341fa60c747dac1d72b5bf77872 100644 (file)
@@ -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}