]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Settings/Delegation.php
Use centralized function to fetch query results
[friendica.git] / src / Module / Settings / Delegation.php
index a2e45883967369cc825b7f518e3044ffa2bbb626..75e683e60a179b3190538f154a4d7075427357eb 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
  *
@@ -36,7 +36,7 @@ use Friendica\Util\Strings;
  */
 class Delegation extends BaseSettings
 {
-       public function post()
+       protected function post(array $request = [])
        {
                if (!DI::app()->isLoggedIn()) {
                        throw new HTTPException\ForbiddenException(DI::l10n()->t('Permission denied.'));
@@ -62,7 +62,7 @@ class Delegation extends BaseSettings
                DBA::update('user', ['parent-uid' => $parent_uid], ['uid' => local_user()]);
        }
 
-       public function content(): string
+       protected function content(array $request = []): string
        {
                parent::content();