<optiontype>text</optiontype>
</option>
<!-- /general.payment -->
- <option name="attachment_storage">
- <categoryname>message.attachment</categoryname>
- <optiontype>text</optiontype>
- </option>
<option name="attachment_enable_thumbnails">
<categoryname>message.attachment</categoryname>
<optiontype>boolean</optiontype>
</options>
</import>
<delete>
+ <option name="attachment_storage" />
<option name="module_attachment"/>
</delete>
</data>
// file header
$writer->write("<?php\n/**\n* generated at ".gmdate('r')."\n*/\n");
+ // Secret options cannot be enabled through the regular options, they need to be manually
+ // defined in the Core's `config.inc.php` to be activated.
+ $attachmentStorage = new Option(null, ['optionName' => 'attachment_storage', 'optionType' => 'text', 'optionValue' => null]);
+ $secretOptions = [$attachmentStorage->getConstantName() => $attachmentStorage];
+
// get all options
- $options = Option::getOptions();
+ $options = $secretOptions + Option::getOptions();
foreach ($options as $optionName => $option) {
$writeValue = $option->optionValue;
if ($writeValue === null) {
<item name="wcf.acp.option.attachment_retain_dimensions"><![CDATA[Bildformat beim Erzeugen von Vorschaugrafiken beibehalten]]></item>
<item name="wcf.acp.option.attachment_thumbnail_height"><![CDATA[Höhe der Vorschaugrafiken]]></item>
<item name="wcf.acp.option.attachment_thumbnail_width"><![CDATA[Breite der Vorschaugrafiken]]></item>
- <item name="wcf.acp.option.attachment_storage"><![CDATA[Speicherort der Dateianhänge]]></item>
- <item name="wcf.acp.option.attachment_storage.description"><![CDATA[{if LANGUAGE_USE_INFORMAL_VARIANT}Du kannst{else}Sie können{/if} optional einen vom Standard abweichenden Speicherort für die Dateianhänge definieren. Bereits existierende Dateianhänge müssen bei einer Änderung des Speicherortes manuell in den neuen Ort übertragen werden.]]></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.attachment_retain_dimensions"><![CDATA[Retain thumbnail dimensions]]></item>
<item name="wcf.acp.option.attachment_thumbnail_height"><![CDATA[Thumbnail Height]]></item>
<item name="wcf.acp.option.attachment_thumbnail_width"><![CDATA[Thumbnail Width]]></item>
- <item name="wcf.acp.option.attachment_storage"><![CDATA[Storage Location]]></item>
- <item name="wcf.acp.option.attachment_storage.description"><![CDATA[You can specify a different storage location for attachments. Attention! You are responsible to move any existing attachments to the new storage location.]]></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>