diff options
Diffstat (limited to 'apps/settings/lib/AppInfo/Application.php')
-rw-r--r-- | apps/settings/lib/AppInfo/Application.php | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/apps/settings/lib/AppInfo/Application.php b/apps/settings/lib/AppInfo/Application.php index fe9ba63b012..af45c56e517 100644 --- a/apps/settings/lib/AppInfo/Application.php +++ b/apps/settings/lib/AppInfo/Application.php @@ -163,8 +163,6 @@ class Application extends App implements IBootstrap { $groupManager->listen('\OC\Group', 'postRemoveUser', [$this, 'removeUserFromGroup']); $groupManager->listen('\OC\Group', 'postAddUser', [$this, 'addUserToGroup']); }); - - Util::connectHook('\OCP\Config', 'js', $this, 'extendJsConfig'); } public function addUserToGroup(IGroup $group, IUser $user): void { @@ -209,23 +207,4 @@ class Application extends App implements IBootstrap { $hooks = $this->getContainer()->query(Hooks::class); $hooks->onChangeEmail($parameters['user'], $parameters['old_value']); } - - /** - * @param array $settings - */ - public function extendJsConfig(array $settings) { - $appConfig = json_decode($settings['array']['oc_appconfig'], true); - - $publicWebFinger = \OC::$server->getConfig()->getAppValue('core', 'public_webfinger', ''); - if (!empty($publicWebFinger)) { - $appConfig['core']['public_webfinger'] = $publicWebFinger; - } - - $publicNodeInfo = \OC::$server->getConfig()->getAppValue('core', 'public_nodeinfo', ''); - if (!empty($publicNodeInfo)) { - $appConfig['core']['public_nodeinfo'] = $publicNodeInfo; - } - - $settings['array']['oc_appconfig'] = json_encode($appConfig); - } } |