From: Philipp Holzer Date: Tue, 5 Feb 2019 22:06:28 +0000 (+0100) Subject: removing code for now X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=87acace6605fdd01f31e1ac3bf1956fe47b50409;p=friendica.git removing code for now --- diff --git a/mod/friendica.php b/mod/friendica.php index e960f575e5..77daabd150 100644 --- a/mod/friendica.php +++ b/mod/friendica.php @@ -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'))) { diff --git a/src/LegacyModule.php b/src/LegacyModule.php index 4fdfc17d9f..a0b23a5419 100644 --- a/src/LegacyModule.php +++ b/src/LegacyModule.php @@ -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}(); }