mirror of
https://github.com/friendica/friendica
synced 2025-05-12 07:04:09 +02:00
Replace calls of Addon::getVisibleList() with AddonHelper::getVisibleEnabledAddons()
This commit is contained in:
parent
04df082d4e
commit
4ea648475f
3 changed files with 21 additions and 13 deletions
|
@ -43,6 +43,11 @@ class ZOT
|
|||
*/
|
||||
public static function getSiteInfo(): array
|
||||
{
|
||||
$baseUrl = (string) DI::baseUrl();
|
||||
$keyValue = DI::keyValue();
|
||||
$addonHelper = DI::addonHelper();
|
||||
$config = DI::config();
|
||||
|
||||
$policies = [
|
||||
Module\Register::OPEN => 'open',
|
||||
Module\Register::APPROVE => 'approve',
|
||||
|
@ -50,14 +55,14 @@ class ZOT
|
|||
];
|
||||
|
||||
return [
|
||||
'url' => (string)DI::baseUrl(),
|
||||
'openWebAuth' => (string)DI::baseUrl() . '/owa',
|
||||
'authRedirect' => (string)DI::baseUrl() . '/magic',
|
||||
'url' => $baseUrl,
|
||||
'openWebAuth' => $baseUrl . '/owa',
|
||||
'authRedirect' => $baseUrl . '/magic',
|
||||
'register_policy' => $policies[Register::getPolicy()],
|
||||
'accounts' => DI::keyValue()->get('nodeinfo_total_users'),
|
||||
'plugins' => Addon::getVisibleList(),
|
||||
'sitename' => DI::config()->get('config', 'sitename'),
|
||||
'about' => DI::config()->get('config', 'info'),
|
||||
'accounts' => $keyValue->get('nodeinfo_total_users'),
|
||||
'plugins' => $addonHelper->getVisibleEnabledAddons(),
|
||||
'sitename' => $config->get('config', 'sitename'),
|
||||
'about' => $config->get('config', 'info'),
|
||||
'project' => App::PLATFORM,
|
||||
'version' => App::VERSION,
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue