From: Matthias Schmidt Date: Sun, 21 Aug 2016 10:23:24 +0000 (+0200) Subject: Add confirm message for media file deletion X-Git-Tag: 3.0.0_Beta_1~629 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b0969180ec1263213fc986ea7215d9062ba2bae1;p=GitHub%2FWoltLab%2FWCF.git Add confirm message for media file deletion --- diff --git a/com.woltlab.wcf/templates/mediaJavaScript.tpl b/com.woltlab.wcf/templates/mediaJavaScript.tpl index c929e711be..79e1988353 100644 --- a/com.woltlab.wcf/templates/mediaJavaScript.tpl +++ b/com.woltlab.wcf/templates/mediaJavaScript.tpl @@ -3,7 +3,7 @@ Language.addObject({ 'wcf.global.button.insert': '{lang}wcf.global.button.insert{/lang}', - 'wcf.media.delete.confirmMessage': '{lang __encode=true}wcf.media.delete.confirmMessage{/lang}', + 'wcf.media.delete.confirmMessage': '{lang __encode=true __literal=true}wcf.media.delete.confirmMessage{/lang}', 'wcf.media.insert': '{lang}wcf.media.insert{/lang}', 'wcf.media.insert.imageSize': '{lang}wcf.media.insert.imageSize{/lang}', 'wcf.media.insert.imageSize.small': '{lang}wcf.media.insert.imageSize.small{/lang}', diff --git a/com.woltlab.wcf/templates/mediaListItems.tpl b/com.woltlab.wcf/templates/mediaListItems.tpl index 70e06b7153..95fe0041b0 100644 --- a/com.woltlab.wcf/templates/mediaListItems.tpl +++ b/com.woltlab.wcf/templates/mediaListItems.tpl @@ -3,11 +3,15 @@
{@$media->getElementTag(144)}
- + + {assign var='__mediaTitle' value=$media->filename} + {if $media->title} + {assign var='__mediaTitle' value=$media->title} + {/if}
-

{if $media->title}{$media->title}{else}{$media->filename}{/if}

+

{$__mediaTitle}

- +