mirror of
https://github.com/friendica/friendica
synced 2025-04-21 02:30:11 +00:00
Revert "Revert "Replace Module::init() with Constructors""
This reverts commit 89d6c89b67
.
This commit is contained in:
parent
942001b04d
commit
645e4edc63
43 changed files with 1226 additions and 922 deletions
|
@ -22,6 +22,7 @@
|
|||
namespace Friendica\Module\Profile;
|
||||
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Core\L10n;
|
||||
|
||||
/**
|
||||
* Profile index router
|
||||
|
@ -36,11 +37,11 @@ class Index extends BaseModule
|
|||
{
|
||||
public function rawContent()
|
||||
{
|
||||
(new Profile($this->parameters))->rawContent();
|
||||
(new Profile($this->l10n, $this->parameters))->rawContent();
|
||||
}
|
||||
|
||||
public function content(): string
|
||||
{
|
||||
return (new Status($this->parameters))->content();
|
||||
return (new Status($this->l10n, $this->parameters))->content();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue