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
parent 2685c9bb1c
commit 2f0da29c75
24 changed files with 241 additions and 211 deletions

View file

@ -3,6 +3,7 @@
* @file include/ping.php
*/
use Friendica\App;
use Friendica\Content\Features;
use Friendica\Content\ForumManager;
use Friendica\Core\Cache;
use Friendica\Core\System;
@ -149,7 +150,7 @@ function ping_init(App $a)
}
if ($network_count) {
if (intval(feature_enabled(local_user(), 'groups'))) {
if (intval(Features::isEnabled(local_user(), 'groups'))) {
// Find out how unseen network posts are spread across groups
$group_counts = groups_count_unseen();
if (DBM::is_result($group_counts)) {
@ -161,7 +162,7 @@ function ping_init(App $a)
}
}
if (intval(feature_enabled(local_user(), 'forumlist_widget'))) {
if (intval(Features::isEnabled(local_user(), 'forumlist_widget'))) {
$forum_counts = ForumManager::countUnseenItems();
if (DBM::is_result($forums_counts)) {
foreach ($forums_counts as $forum_count) {