X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FContent%2FForumManager.php;h=ac745c50ff672655ea5b16be8c68cf1c9202d3e8;hb=e0a763b07f12ecb7389925100959f9ac6ebe85a8;hp=a47d70ab38b2a60ebe037d0ec98594b33e268bcc;hpb=bd972151478f40f73585519110700222a1931d44;p=friendica.git diff --git a/src/Content/ForumManager.php b/src/Content/ForumManager.php index a47d70ab38..ac745c50ff 100644 --- a/src/Content/ForumManager.php +++ b/src/Content/ForumManager.php @@ -7,6 +7,7 @@ namespace Friendica\Content; use Friendica\Core\Protocol; use Friendica\Content\Feature; +use Friendica\Content\Text\HTML; use Friendica\Core\L10n; use Friendica\Core\Renderer; use Friendica\Core\System; @@ -14,8 +15,6 @@ use Friendica\Database\DBA; use Friendica\Model\Contact; use Friendica\Util\Proxy as ProxyUtils; -require_once 'include/dba.php'; - /** * @brief This class handles methods related to the forum functionality */ @@ -92,10 +91,6 @@ class ForumManager */ public static function widget($uid, $cid = 0) { - if (! intval(Feature::isEnabled(local_user(), 'forumlist_widget'))) { - return; - } - $o = ''; //sort by last updated item @@ -169,7 +164,7 @@ class ForumManager $total_shown = 0; $forumlist = ''; foreach ($contacts as $contact) { - $forumlist .= micropro($contact, false, 'forumlist-profile-advanced'); + $forumlist .= HTML::micropro($contact, false, 'forumlist-profile-advanced'); $total_shown ++; if ($total_shown == $show_total) { break;