Identation... If your are using a non supported locale, it wont try to loaded
This commit is contained in:
parent
076cde1a1b
commit
81082f9a07
|
|
@ -82,8 +82,10 @@ class ProfaneValidator
|
||||||
$dict = include($baseDictPath.$dictionary.'.php');
|
$dict = include($baseDictPath.$dictionary.'.php');
|
||||||
$badwords = array_merge($badwords, $dict);
|
$badwords = array_merge($badwords, $dict);
|
||||||
} else {
|
} else {
|
||||||
|
if (file_exists($dictionary)) {
|
||||||
$dict = include($dictionary);
|
$dict = include($dictionary);
|
||||||
$badwords = array_merge($badwords, $dict);
|
$badwords = array_merge($badwords, $dict);
|
||||||
|
} // else nothing is merged
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue