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;
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
*/
*/
public static function widget($uid, $cid = 0)
{
- if (! intval(Feature::isEnabled(local_user(), 'forumlist_widget'))) {
- return;
- }
-
$o = '';
//sort by last updated item
$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;