Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach($wrongTexts as $wrongText) {
- $wrongTextLen = mb_strlen($wrongText);
- if($wrongTextLen > 500) {
- $wrongTextLen = 500;
- }
- if($this->text->similar($message, $wrongText, array('maxSymbols' => $wrongTextLen, 'lower' => true, 'toTranslit' => true)) > 70) {
- $premoderation = true;
- $premoderationReasons['wrongText'] = true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement