Specify a default value for `enable_censorship`
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 22 Oct 2021 08:41:52 +0000 (10:41 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 22 Oct 2021 08:41:52 +0000 (10:41 +0200)
This did not cause issues in practice, as `options.inc.php` reliably contained
a `0` as the option’s value.

Fixes #4565

com.woltlab.wcf/option.xml

index 8d354d20e4e8f3ad191931caf5d58ba0e10d74d0..34e7f1e3dce4955aa843138da794de7ef8b51dac 100644 (file)
@@ -1131,6 +1131,7 @@ XING</selectoptions>
                                <categoryname>message.censorship</categoryname>
                                <optiontype>boolean</optiontype>
                                <enableoptions>censored_words</enableoptions>
+                               <defaultvalue>0</defaultvalue>
                        </option>
                        <option name="censored_words">
                                <categoryname>message.censorship</categoryname>