mirror of
https://github.com/friendica/friendica
synced 2025-04-25 07:10:11 +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,11 +1,11 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file mod/admin.php
|
||||
*
|
||||
* @brief Friendica admin
|
||||
*/
|
||||
use Friendica\App;
|
||||
use Friendica\Content\Features;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\Worker;
|
||||
|
@ -2291,7 +2291,7 @@ function admin_page_features_post(App $a)
|
|||
logger('postvars: ' . print_r($_POST, true), LOGGER_DATA);
|
||||
|
||||
$arr = array();
|
||||
$features = get_features(false);
|
||||
$features = Features::get(false);
|
||||
|
||||
foreach ($features as $fname => $fdata) {
|
||||
foreach (array_slice($fdata, 1) as $f) {
|
||||
|
@ -2336,7 +2336,7 @@ function admin_page_features(App $a)
|
|||
{
|
||||
if ((argc() > 1) && (argv(1) === 'features')) {
|
||||
$arr = array();
|
||||
$features = get_features(false);
|
||||
$features = Features::get(false);
|
||||
|
||||
foreach ($features as $fname => $fdata) {
|
||||
$arr[$fname] = array();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue