removing code for now
This commit is contained in:
parent
ef16e1a037
commit
87acace660
2 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@ use Friendica\Core\System;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
use Friendica\Module\Register;
|
use Friendica\Module\Register;
|
||||||
|
|
||||||
function friendica_init(App $a, Config\ConfigCache $config)
|
function friendica_init(App $a)
|
||||||
{
|
{
|
||||||
if (!empty($a->argv[1]) && ($a->argv[1] == "json")) {
|
if (!empty($a->argv[1]) && ($a->argv[1] == "json")) {
|
||||||
$register_policies = [
|
$register_policies = [
|
||||||
|
@ -29,7 +29,7 @@ function friendica_init(App $a, Config\ConfigCache $config)
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql_extra = '';
|
$sql_extra = '';
|
||||||
if ($config->get('config', 'admin_nickname') !== null) {
|
if (Config::get('config', 'admin_nickname') !== null) {
|
||||||
$sql_extra = sprintf(" AND `nickname` = '%s' ", DBA::escape(Config::get('config', 'admin_nickname')));
|
$sql_extra = sprintf(" AND `nickname` = '%s' ", DBA::escape(Config::get('config', 'admin_nickname')));
|
||||||
}
|
}
|
||||||
if (!empty(Config::get('config', 'admin_email'))) {
|
if (!empty(Config::get('config', 'admin_email'))) {
|
||||||
|
|
|
@ -68,7 +68,7 @@ class LegacyModule extends BaseModule
|
||||||
|
|
||||||
if (\function_exists($function_name)) {
|
if (\function_exists($function_name)) {
|
||||||
$a = self::getApp();
|
$a = self::getApp();
|
||||||
return $function_name($a, $a->getConfig());
|
return $function_name($a);
|
||||||
} else {
|
} else {
|
||||||
return parent::{$function_suffix}();
|
return parent::{$function_suffix}();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue