Browse Source

removing code for now

pull/6581/head
Philipp Holzer 3 years ago
parent
commit
87acace660
No known key found for this signature in database
GPG Key ID: 517BE60E2CE5C8A5
  1. 4
      mod/friendica.php
  2. 2
      src/LegacyModule.php

4
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'))) {

2
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}();
}

Loading…
Cancel
Save