Features to src

Move Features to class in Friendica\Content namespace. Update function calls and references.
This commit is contained in:
Adam Magness 2017-12-04 08:33:49 -05:00
commit 2f0da29c75
24 changed files with 241 additions and 211 deletions

View file

@ -6,6 +6,7 @@
namespace Friendica\Content;
use Friendica\App;
use Friendica\Content\Features;
use Friendica\Core\System;
use Friendica\Database\DBM;
use dba;
@ -82,7 +83,7 @@ class ForumManager
*/
public static function widget($uid, $cid = 0)
{
if (! intval(feature_enabled(local_user(), 'forumlist_widget'))) {
if (! intval(Features::isEnabled(local_user(), 'forumlist_widget'))) {
return;
}
@ -141,7 +142,7 @@ class ForumManager
*/
public static function profileAdvanced($uid)
{
$profile = intval(feature_enabled($uid, 'forumlist_profile'));
$profile = intval(Features::isEnabled($uid, 'forumlist_profile'));
if (! $profile) {
return;
}