]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/ForumManager.php
Features to src
[friendica.git] / src / Content / ForumManager.php
index e5d153f75960c5988ae34816ddd0c49689450fc8..8df416e331d75ab5dae471c6c8a72d500db2922a 100644 (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;
                }