Added ability to reset to default. Bug #4123

This commit is contained in:
thepurpleblob
2006-02-06 16:36:28 +00:00
parent cda8673c5f
commit e9512cdda9
+5 -1
View File
@@ -1,6 +1,10 @@
<?php
// check the default settings
if (!isset($CFG->filter_censor_badwords)) {
// $forcereset is set in calling routine
if (!isset($forcereset)) {
$forcereset = false;
}
if (!isset($CFG->filter_censor_badwords) or $forcereset) {
set_config( 'filter_censor_badwords','' );
}