mirror of
https://github.com/friendica/friendica
synced 2025-04-24 12:30:10 +00: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
|
@ -1,5 +1,8 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file include/contact_widgets.php
|
||||
*/
|
||||
use Friendica\Content\Features;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\PConfig;
|
||||
|
@ -105,7 +108,7 @@ function networks_widget($baseurl, $selected = '') {
|
|||
return '';
|
||||
}
|
||||
|
||||
if (!feature_enabled(local_user(), 'networks')) {
|
||||
if (!Features::isEnabled(local_user(), 'networks')) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
@ -144,7 +147,7 @@ function fileas_widget($baseurl, $selected = '') {
|
|||
return '';
|
||||
}
|
||||
|
||||
if (! feature_enabled(local_user(), 'filing')) {
|
||||
if (! Features::isEnabled(local_user(), 'filing')) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
@ -178,7 +181,7 @@ function categories_widget($baseurl, $selected = '') {
|
|||
|
||||
$a = get_app();
|
||||
|
||||
if (! feature_enabled($a->profile['profile_uid'], 'categories')) {
|
||||
if (! Features::isEnabled($a->profile['profile_uid'], 'categories')) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue