]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/BaseAdmin.php
Merge pull request #11872 from annando/warnings
[friendica.git] / src / Module / BaseAdmin.php
index 83e3ca0b17e52150c548b31f214f36de59512673..713c44cc200ccfb5c413159d86f3bfb0943a593f 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
  *
@@ -43,7 +43,10 @@ require_once 'boot.php';
 abstract class BaseAdmin extends BaseModule
 {
        /**
+        * Checks admin access and throws exceptions if not logged-in administrator
+        *
         * @param bool $interactive
+        * @return void
         * @throws HTTPException\ForbiddenException
         * @throws HTTPException\InternalServerErrorException
         */
@@ -68,7 +71,7 @@ abstract class BaseAdmin extends BaseModule
                }
        }
 
-       public function content(): string
+       protected function content(array $request = []): string
        {
                self::checkAdminAccess(true);