]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/HCard.php
$_POST replaced
[friendica.git] / src / Module / HCard.php
index 079f240ae4b72b1fafc82cc1ec416570e8f170bc..cb84c1aa94dec41fc115510e1b1fcd77fb09364a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -34,14 +34,14 @@ use Friendica\Network\HTTPException;
  */
 class HCard extends BaseModule
 {
-       public static function content(array $parameters = [])
+       protected function content(array $request = []): string
        {
-               if ((local_user()) && ($parameters['action'] ?? '') === 'view') {
+               if ((local_user()) && ($this->parameters['action'] ?? '') === 'view') {
                        // A logged in user views a profile of a user
                        $nickname = DI::app()->getLoggedInUserNickname();
-               } elseif (empty($parameters['action'])) {
+               } elseif (empty($this->parameters['action'])) {
                        // Show the profile hCard
-                       $nickname = $parameters['profile'];
+                       $nickname = $this->parameters['profile'];
                } else {
                        throw new HTTPException\NotFoundException(DI::l10n()->t('No profile'));
                }