]> git.mxchange.org Git - friendica-addons.git/commitdiff
[langfilter] Fix namespacing to refer to Text\BBCode
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 21 Apr 2018 22:47:18 +0000 (18:47 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Sat, 21 Apr 2018 22:47:18 +0000 (18:47 -0400)
langfilter/langfilter.php

index 38b2e117be23d53f92ed9373056965246c667ca6..64226144be82d8ed946afcdd3390f6fa66abe17d 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 use Friendica\App;
+use Friendica\Content\Text\BBCode;
 use Friendica\Core\Addon;
 use Friendica\Core\L10n;
 use Friendica\Core\PConfig;
@@ -134,7 +135,7 @@ function langfilter_prepare_body_content_filter(App $a, &$hook_data)
                return;
        }
 
-       $naked_body = Text\BBCode::toPlaintext($hook_data['item']['body'], false);
+       $naked_body = BBCode::toPlaintext($hook_data['item']['body'], false);
 
        // Don't filter if body lenght is below minimum
        $minlen = PConfig::get(local_user(), 'langfilter', 'minlength', 32);