From: Joshua Rüsweg Date: Mon, 28 Jan 2019 16:57:17 +0000 (+0100) Subject: Fix displaying of single image files X-Git-Tag: 5.2.0_Alpha_1~296^2~22 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=84f426d1bb9ae9951222f162da95f5dbe2e80115;p=GitHub%2FWoltLab%2FWCF.git Fix displaying of single image files See #2825 --- diff --git a/com.woltlab.wcf/templates/uploadFieldComponent.tpl b/com.woltlab.wcf/templates/uploadFieldComponent.tpl index 11f6250067..3fa0ea00d7 100644 --- a/com.woltlab.wcf/templates/uploadFieldComponent.tpl +++ b/com.woltlab.wcf/templates/uploadFieldComponent.tpl @@ -1,6 +1,6 @@ {if !$uploadField->supportMultipleFiles() && $uploadField->isImageOnly()}
{* - *}{if !$files|empty}{* + *}{if !$uploadFieldFiles|empty}{* *}{assign var="file" value=$uploadFieldFiles|reset}{* *}{* *}