]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Item/Pin.php
Normalize base URL usage in admin templates
[friendica.git] / src / Module / Item / Pin.php
index 185b418bb6fdb4a972cecad27cae3c68874fea28..d002e8bff1376266b7b06de607807be6e653af7d 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,7 +34,7 @@ use Friendica\Network\HTTPException;
  */
 class Pin extends BaseModule
 {
-       public function rawContent()
+       protected function rawContent(array $request = [])
        {
                $l10n = DI::l10n();
 
@@ -42,11 +42,11 @@ class Pin extends BaseModule
                        throw new HttpException\ForbiddenException($l10n->t('Access denied.'));
                }
 
-               if (empty(static::$parameters['id'])) {
+               if (empty($this->parameters['id'])) {
                        throw new HTTPException\BadRequestException();
                }
 
-               $itemId = intval(static::$parameters['id']);
+               $itemId = intval($this->parameters['id']);
 
                $item = Post::selectFirst(['uri-id', 'uid'], ['id' => $itemId]);
                if (!DBA::isResult($item)) {