mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
Moved badwords list to censor.php file (bug 3164)
This commit is contained in:
parent
d5a1bc7931
commit
bde0832a23
@ -18,7 +18,7 @@ function censor_filter($courseid, $text) {
|
||||
|
||||
if (empty($words)) {
|
||||
$words = array();
|
||||
$badwords = explode(',', get_string('censorbadwords'));
|
||||
$badwords = explode(',', get_string('badwords', 'censor'));
|
||||
foreach ($badwords as $badword) {
|
||||
$words[] = new filterobject(trim($badword), '<span class="censoredtext">', '</span>', false, false);
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
<?php /// $Id$
|
||||
|
||||
$string['filtername'] = "Word Censorship";
|
||||
$string['badwords'] = 'shit,fucked,fucker,fuck,dickhead, dick,cockhead,cock,cunt,asshole,arsehole,prick,bitch, jism,whore,slut,wanker, wank,bastard,dildo,masturbate, orgasm,penis,nigger, pussy,vagina';
|
||||
|
||||
?>
|
||||
|
||||
|
@ -139,7 +139,6 @@ $string['category'] = 'Category';
|
||||
$string['categoryadded'] = 'The category \'$a\' was added';
|
||||
$string['categorydeleted'] = 'The category \'$a\' was deleted';
|
||||
$string['categoryduplicate'] = 'A category named \'$a\' already exists!';
|
||||
$string['censorbadwords'] = 'shit,fucked,fucker,fuck,dickhead, dick,cockhead,cock,cunt,asshole,arsehole,prick,bitch, jism,whore,slut,wanker, wank,bastard,dildo,masturbate, orgasm,penis,nigger, pussy,vagina';
|
||||
$string['changedpassword'] = 'Changed password';
|
||||
$string['changepassword'] = 'Change password';
|
||||
$string['changessaved'] = 'Changes saved';
|
||||
|
Loading…
x
Reference in New Issue
Block a user