Add ability to disable adding attachments by section in overrides.inc.php.
This commit is contained in:
parent
886c68b764
commit
e5ff52f299
|
@ -493,15 +493,13 @@ function quoten() {
|
|||
onclick="quoten(); this.style.visibility= 'hidden';">
|
||||
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<input type="file" name="photo" id="fileSelect" value="fileSelect"
|
||||
accept="image/*,audio/*,text/*,application/pdf">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
|
||||
}
|
||||
if (! in_array($config_name, $OVERRIDES['disable_attach'], true)) {
|
||||
echo ' ';
|
||||
echo '<input type="file" name="photo" id="fileSelect" value="fileSelect" accept="image/*,audio/*,text/*,application/pdf">';
|
||||
echo '</td></tr>';
|
||||
}
|
||||
if ($post_captcha) {
|
||||
echo '<tr><td>';
|
||||
echo captcha::form($text_post["captchainfo1"], $text_post["captchainfo2"]);
|
||||
|
|
|
@ -42,6 +42,11 @@ return [
|
|||
// Disable display of X-Face
|
||||
'disable_xface' => false,
|
||||
|
||||
// Disable posting attachments by section
|
||||
// List section names to disable:
|
||||
// array("sectionONE", "sectionTWO", "sectionETC"),
|
||||
'disable_attach' => array("section"),
|
||||
|
||||
// Just leave this here to avoid comma errors
|
||||
'comma' => true
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue