From 8e8bb8e918b54080ad309fedc25494cd14e7fc64 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 21 Apr 2018 18:47:18 -0400 Subject: [PATCH] [langfilter] Fix namespacing to refer to Text\BBCode --- langfilter/langfilter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/langfilter/langfilter.php b/langfilter/langfilter.php index 38b2e117b..64226144b 100644 --- a/langfilter/langfilter.php +++ b/langfilter/langfilter.php @@ -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);