]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Debug/ItemBody.php
Merge pull request #10994 from nupplaphil/feat/module_constructor
[friendica.git] / src / Module / Debug / ItemBody.php
index 2299b3cb21302dfc9ddd8a871efb1ccec292c079..3759931145e16ee30423144576f1e421116c708c 100644 (file)
@@ -31,17 +31,17 @@ use Friendica\Network\HTTPException;
  */
 class ItemBody extends BaseModule
 {
-       public static function content(array $parameters = [])
+       public function content(): string
        {
                if (!local_user()) {
                        throw new HTTPException\UnauthorizedException(DI::l10n()->t('Access denied.'));
                }
 
-               if (empty($parameters['item'])) {
+               if (empty($this->parameters['item'])) {
                        throw new HTTPException\NotFoundException(DI::l10n()->t('Item not found.'));
                }
 
-               $itemId = intval($parameters['item']);
+               $itemId = intval($this->parameters['item']);
 
                $item = Post::selectFirst(['body'], ['uid' => [0, local_user()], 'uri-id' => $itemId]);