<acpmenuitem name="wcf.acp.menu.link.attachment.list">
<controller>wcf\acp\page\AttachmentListPage</controller>
<parent>wcf.acp.menu.link.attachment</parent>
- <options>module_attachment</options>
<permissions>admin.attachment.canManageAttachment</permissions>
</acpmenuitem>
<!-- /attachment -->
</category>
<category name="message.attachment">
<parent>message</parent>
- <options>module_attachment</options>
</category>
<category name="message.attachment.autoscale">
<parent>message.attachment</parent>
<nav class="messageTabMenuNavigation jsOnly">
<ul>
{if MODULE_SMILEY && !$smileyCategories|empty}<li data-name="smilies"><a><span class="icon icon16 fa-smile-o"></span> <span>{lang}wcf.message.smilies{/lang}</span></a></li>{/if}
- {if MODULE_ATTACHMENT && !$attachmentHandler|empty && $attachmentHandler->canUpload()}<li data-name="attachments"><a><span class="icon icon16 fa-paperclip"></span> <span>{lang}wcf.attachment.attachments{/lang}</span></a></li>{/if}
+ {if !$attachmentHandler|empty && $attachmentHandler->canUpload()}
+ <li data-name="attachments"><a><span class="icon icon16 fa-paperclip"></span> <span>{lang}wcf.attachment.attachments{/lang}</span></a></li>
+ {/if}
{if $__messageFormSettings}<li data-name="settings"><a><span class="icon icon16 fa-cog"></span> <span>{lang}wcf.message.settings{/lang}</span></a></li>{/if}
{if $__showPoll|isset && $__showPoll}<li data-name="poll"><a><span class="icon icon16 fa-bar-chart"></span> <span>{lang}wcf.poll.management{/lang}</span></a></li>{/if}
{event name='tabMenuTabs'}
</nav>
{if MODULE_SMILEY && !$smileyCategories|empty}{include file='messageFormSmilies'}{/if}
- {if MODULE_ATTACHMENT && !$attachmentHandler|empty && $attachmentHandler->canUpload()}{include file='messageFormAttachments'}{/if}
+ {if !$attachmentHandler|empty && $attachmentHandler->canUpload()}
+ {include file='messageFormAttachments'}
+ {/if}
{if $__messageFormSettings}{@$__messageFormSettings}{/if}
{include file='__messageFormPoll'}
<nav class="messageTabMenuNavigation jsOnly">
<ul>
{if MODULE_SMILEY && !$smileyCategories|empty}<li data-name="smilies"><a><span class="icon icon16 fa-smile-o"></span> <span>{lang}wcf.message.smilies{/lang}</span></a></li>{/if}
- {if MODULE_ATTACHMENT && !$attachmentHandler|empty && $attachmentHandler->canUpload()}<li data-name="attachments"><a><span class="icon icon16 fa-paperclip"></span> <span>{lang}wcf.attachment.attachments{/lang}</span></a></li>{/if}
+ {if !$attachmentHandler|empty && $attachmentHandler->canUpload()}
+ <li data-name="attachments"><a><span class="icon icon16 fa-paperclip"></span> <span>{lang}wcf.attachment.attachments{/lang}</span></a></li>
+ {/if}
{if $__messageFormSettingsInlineContent}<li data-name="settings"><a><span class="icon icon16 fa-cog"></span> <span>{lang}wcf.message.settings{/lang}</span></a></li>{/if}
{if $__showPoll|isset && $__showPoll}<li data-name="poll"><a><span class="icon icon16 fa-bar-chart"></span> <span>{lang}wcf.poll.management{/lang}</span></a></li>{/if}
{event name='tabMenuTabs'}
</nav>
{if MODULE_SMILEY && !$smileyCategories|empty}{include file='messageFormSmilies'}{/if}
- {if MODULE_ATTACHMENT && !$attachmentHandler|empty && $attachmentHandler->canUpload()}{include file='messageFormAttachments'}{/if}
+ {if !$attachmentHandler|empty && $attachmentHandler->canUpload()}
+ {include file='messageFormAttachments'}
+ {/if}
{if $__messageFormSettingsInlineContent}{@$__messageFormSettingsInlineContent}{/if}
<categoryname>admin.content</categoryname>
<optiontype>boolean</optiontype>
<defaultvalue>0</defaultvalue>
- <options>module_attachment</options>
<admindefaultvalue>1</admindefaultvalue>
<usersonly>1</usersonly>
</option>
*/
public function readData() {
// get attachments
- if (MODULE_ATTACHMENT && $this->attachmentObjectType) {
+ if ($this->attachmentObjectType) {
$this->attachmentHandler = new AttachmentHandler($this->attachmentObjectType, $this->attachmentObjectID, $this->tmpHash, $this->attachmentParentObjectID);
}
$parameters['data'] = array_merge($additionalFields, $parameters['data']);
// attachment support
- if (MODULE_ATTACHMENT && !empty($parameters['tmpHash']) && $object instanceof IAttachmentMessageQuickReplyAction) {
+ if (!empty($parameters['tmpHash']) && $object instanceof IAttachmentMessageQuickReplyAction) {
$parameters['attachmentHandler'] = $object->getAttachmentHandler($this->container);
}
<item name="wcf.acp.option.attachment_image_autoscale_file_type"><![CDATA[Dateityp]]></item>
<item name="wcf.acp.option.attachment_image_autoscale_file_type.jpeg"><![CDATA[JPEG (verlustbehaftet, erzeugt in der Regel kleine Dateien)]]></item>
<item name="wcf.acp.option.attachment_image_autoscale_file_type.keep"><![CDATA[Dateityp beibehalten]]></item>
- <item name="wcf.acp.option.module_attachment"><![CDATA[Dateianhänge]]></item>
<item name="wcf.acp.option.module_smiley"><![CDATA[Smileys]]></item>
<item name="wcf.acp.option.category.message.censorship"><![CDATA[Zensur-Funktion]]></item>
<item name="wcf.acp.option.censored_words"><![CDATA[Zu zensierende Wörter]]></item>
<item name="wcf.acp.option.attachment_image_autoscale_file_type"><![CDATA[File type]]></item>
<item name="wcf.acp.option.attachment_image_autoscale_file_type.jpeg"><![CDATA[JPEG (lossy, usually the generated files are small)]]></item>
<item name="wcf.acp.option.attachment_image_autoscale_file_type.keep"><![CDATA[Keep the file type]]></item>
- <item name="wcf.acp.option.module_attachment"><![CDATA[Attachments]]></item>
<item name="wcf.acp.option.module_smiley"><![CDATA[Smilies]]></item>
<item name="wcf.acp.option.category.message.censorship"><![CDATA[Censorship]]></item>
<item name="wcf.acp.option.censored_words"><![CDATA[Censored Words]]></item>