From: Hypolite Petovan Date: Sat, 21 Apr 2018 22:47:18 +0000 (-0400) Subject: [langfilter] Fix namespacing to refer to Text\BBCode X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8e8bb8e918b54080ad309fedc25494cd14e7fc64;p=friendica-addons.git [langfilter] Fix namespacing to refer to Text\BBCode --- diff --git a/langfilter/langfilter.php b/langfilter/langfilter.php index 38b2e117..64226144 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);