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

@ -6,6 +6,7 @@
* @todo Automatically detect if incoming data is HTML or BBCode
*/
use Friendica\App;
use Friendica\Content\Features;
use Friendica\Core\System;
use Friendica\Core\Config;
use Friendica\Core\NotificationsManager;
@ -5100,7 +5101,7 @@ function api_friendica_profile_show($type)
$profileid = (x($_REQUEST, 'profile_id') ? $_REQUEST['profile_id'] : 0);
// retrieve general information about profiles for user
$multi_profiles = feature_enabled(api_user(), 'multi_profiles');
$multi_profiles = Features::isEnabled(api_user(), 'multi_profiles');
$directory = Config::get('system', 'directory');
// get data of the specified profile id or all profiles of the user if not specified