Revert "Revert "Replace Module::init() with Constructors""
This reverts commit 89d6c89b67.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user