removing code for now

This commit is contained in:
Philipp Holzer 2019-02-05 23:06:28 +01:00
parent ef16e1a037
commit 87acace660
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
2 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@ use Friendica\Core\System;
use Friendica\Database\DBA;
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")) {
$register_policies = [
@ -29,7 +29,7 @@ function friendica_init(App $a, Config\ConfigCache $config)
}
$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')));
}
if (!empty(Config::get('config', 'admin_email'))) {

View file

@ -68,7 +68,7 @@ class LegacyModule extends BaseModule
if (\function_exists($function_name)) {
$a = self::getApp();
return $function_name($a, $a->getConfig());
return $function_name($a);
} else {
return parent::{$function_suffix}();
}