mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Features to src
Move Features to class in Friendica\Content namespace. Update function calls and references.
This commit is contained in:
parent
2685c9bb1c
commit
2f0da29c75
24 changed files with 241 additions and 211 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue