From 9900a1e59200c25e5c3057853f9a43ebd83b499a Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 30 Mar 2021 15:08:03 +0200 Subject: [PATCH] Fixed missing language variables for error messages --- wcfsetup/install/files/acp/templates/styleAdd.tpl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wcfsetup/install/files/acp/templates/styleAdd.tpl b/wcfsetup/install/files/acp/templates/styleAdd.tpl index 2ffce8cd6f..8a7295a2ff 100644 --- a/wcfsetup/install/files/acp/templates/styleAdd.tpl +++ b/wcfsetup/install/files/acp/templates/styleAdd.tpl @@ -237,6 +237,8 @@ {if $errorType == 'empty'} {lang}wcf.global.form.error.empty{/lang} + {elseif $errorType == 'invalid'} + {lang}wcf.upload.error.noImage{/lang} {else} {lang}wcf.acp.style.image.error.{$errorType}{/lang} {/if} @@ -253,6 +255,8 @@ {if $errorType == 'empty'} {lang}wcf.global.form.error.empty{/lang} + {elseif $errorType == 'invalid'} + {lang}wcf.upload.error.noImage{/lang} {else} {lang}wcf.acp.style.image2x.error.{$errorType}{/lang} {/if} @@ -315,6 +319,8 @@ {lang}wcf.global.form.error.empty{/lang} {elseif $errorType == 'minWidth' || $errorType == 'minHeight' || $errorType == 'maxWidth' || $errorType == 'maxHeight'} {lang}wcf.acp.style.favicon.error.dimensions{/lang} + {elseif $errorType == 'invalid'} + {lang}wcf.upload.error.noImage{/lang} {else} {lang}wcf.acp.style.favicon.error.{$errorType}{/lang} {/if} @@ -343,6 +349,8 @@ {lang}wcf.global.form.error.empty{/lang} {elseif $errorType == 'minWidth' || $errorType == 'minHeight'} {lang}wcf.image.coverPhoto.upload.error.{$errorType}{/lang} + {elseif $errorType == 'invalid'} + {lang}wcf.upload.error.noImage{/lang} {else} {lang}wcf.acp.style.coverPhoto.error.{$errorType}{/lang} {/if} -- 2.20.1