This commit is contained in:
Art4 2025-02-08 16:38:01 +00:00
parent b1f4184d96
commit f4624b0591
4 changed files with 11 additions and 13 deletions

View file

@ -18,7 +18,6 @@
use Friendica\Content\Conversation; use Friendica\Content\Conversation;
use Friendica\Content\Text\BBCode; use Friendica\Content\Text\BBCode;
use Friendica\Core\Hook;
use Friendica\Core\Protocol; use Friendica\Core\Protocol;
use Friendica\Core\System; use Friendica\Core\System;
use Friendica\Core\Worker; use Friendica\Core\Worker;

View file

@ -33,8 +33,8 @@ class Home extends BaseModule
protected function content(array $request = []): string protected function content(array $request = []): string
{ {
$basePath = DI::appHelper()->getBasePath(); $basePath = DI::appHelper()->getBasePath();
$config = DI::config(); $config = DI::config();
$eventDispatcher = DI::eventDispatcher(); $eventDispatcher = DI::eventDispatcher();
$eventDispatcher->dispatch( $eventDispatcher->dispatch(
@ -49,11 +49,11 @@ class Home extends BaseModule
DI::baseUrl()->redirect('/profile/' . $config->get('system', 'singleuser')); DI::baseUrl()->redirect('/profile/' . $config->get('system', 'singleuser'));
} }
$customHome = ''; $customHome = '';
$defaultHeader = ($config->get('config', 'sitename') ? DI::l10n()->t('Welcome to %s', $config->get('config', 'sitename')) : ''); $defaultHeader = ($config->get('config', 'sitename') ? DI::l10n()->t('Welcome to %s', $config->get('config', 'sitename')) : '');
$homeFilePath = $basePath . '/home.html'; $homeFilePath = $basePath . '/home.html';
$cssFilePath = $basePath . '/home.css'; $cssFilePath = $basePath . '/home.css';
if (file_exists($homeFilePath)) { if (file_exists($homeFilePath)) {
$customHome = $homeFilePath; $customHome = $homeFilePath;

View file

@ -8,7 +8,6 @@
namespace Friendica\Module\Post\Tag; namespace Friendica\Module\Post\Tag;
use Friendica\App; use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\L10n; use Friendica\Core\L10n;
use Friendica\Core\Session\Capability\IHandleUserSessions; use Friendica\Core\Session\Capability\IHandleUserSessions;
use Friendica\Core\System; use Friendica\Core\System;

View file

@ -53,13 +53,13 @@ class Delegation extends BaseModule
{ {
parent::__construct($l10n, $baseUrl, $args, $logger, $profiler, $response, $server, $parameters); parent::__construct($l10n, $baseUrl, $args, $logger, $profiler, $response, $server, $parameters);
$this->session = $session; $this->session = $session;
$this->db = $db; $this->db = $db;
$this->auth = $auth; $this->auth = $auth;
$this->systemMessages = $systemMessages; $this->systemMessages = $systemMessages;
$this->notify = $notify; $this->notify = $notify;
$this->intro = $intro; $this->intro = $intro;
$this->appHelper = $appHelper; $this->appHelper = $appHelper;
$this->eventDispatcher = $eventDispatcher; $this->eventDispatcher = $eventDispatcher;
} }