Moved badwords list to censor.php file (bug 3164)

This commit is contained in:
moodler 2005-05-08 15:10:17 +00:00
parent d5a1bc7931
commit bde0832a23
3 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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';
?>

View File

@ -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';