<?php
/**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
*/
class Apps extends BaseModule
{
- public static function init(array $parameters = [])
+ public function init()
{
$privateaddons = DI::config()->get('config', 'private_addons');
if ($privateaddons === "1" && !local_user()) {
}
}
- public static function content(array $parameters = [])
+ public function content(): string
{
$apps = Nav::getAppMenu();
if (count($apps) == 0) {
- notice(DI::l10n()->t('No installed applications.') . EOL);
+ notice(DI::l10n()->t('No installed applications.'));
}
$tpl = Renderer::getMarkupTemplate('apps.tpl');