Fix code style issues in template
authorJoshua Rüsweg <josh@bastelstu.be>
Fri, 11 Jan 2019 23:08:02 +0000 (00:08 +0100)
committerJoshua Rüsweg <josh@bastelstu.be>
Fri, 11 Jan 2019 23:08:02 +0000 (00:08 +0100)
See #2825

com.woltlab.wcf/templates/uploadFieldComponent.tpl

index f9a9d53e52b86832b16f6502580d302661e0662b..2362d74cb7073e4cd87f57d21bfb72d452e15f1e 100644 (file)
@@ -2,14 +2,14 @@
        <dt><label for="{$fieldId}">{$field->getName()}</label></dt>
        <dd>
                {if !$field->supportMultipleFiles() && $field->isImageOnly()}
-                               <div class="selectedImagePreview uploadedFile" id="{$fieldId}uploadFileList" data-internal-id="{$field->getInternalId()}">{*
-                                       *}{if !$files|empty}{*
-                                               *}{assign var="file" value=$files|reset}{*
-                                               *}<img src="{$file->getImage()}" alt="" class="previewImage" id="{$fieldId}Image" style="max-width: 100%" data-unique-file-id="{$file->getUniqueFileId()}">{*
-                                       *}
-                                               <ul class="buttonGroup"></ul>
-                                       {/if}{*
-                               *}</div>
+                       <div class="selectedImagePreview uploadedFile" id="{$fieldId}uploadFileList" data-internal-id="{$field->getInternalId()}">{*
+                               *}{if !$files|empty}{*
+                                       *}{assign var="file" value=$files|reset}{*
+                                       *}<img src="{$file->getImage()}" alt="" class="previewImage" id="{$fieldId}Image" style="max-width: 100%" data-unique-file-id="{$file->getUniqueFileId()}">{*
+                               *}
+                                       <ul class="buttonGroup"></ul>
+                               {/if}{*
+                       *}</div>
                {else}
                        <div class="formUploadHandlerContent">
                                <ul class="formUploadHandlerList" id="{$fieldId}uploadFileList" data-internal-id="{$field->getInternalId()}">
@@ -42,7 +42,7 @@
                                {if $errorType == 'empty'}
                                        {lang}wcf.global.form.error.empty{/lang}
                                {else}
-                                       {lang __optional="true"}{$errorType}{/lang}
+                                       {lang}{$errorType}{/lang}
                                {/if}
                        </small>
                {/if}