]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/BaseNotifications.php
Merge remote-tracking branch 'upstream/develop' into api4
[friendica.git] / src / Module / BaseNotifications.php
index e7f9bdabe374508328eec7d0a446f33677b025c0..685337699baba572006c2ff671cda659074d104a 100644 (file)
@@ -82,7 +82,7 @@ abstract class BaseNotifications extends BaseModule
         */
        abstract public static function getNotifications();
 
-       public static function init(array $parameters = [])
+       public function init()
        {
                if (!local_user()) {
                        throw new ForbiddenException(DI::l10n()->t('Permission denied.'));
@@ -94,7 +94,7 @@ abstract class BaseNotifications extends BaseModule
                self::$showAll      = ($_REQUEST['show'] ?? '') === 'all';
        }
 
-       public static function rawContent(array $parameters = [])
+       public function rawContent()
        {
                // If the last argument of the query is NOT json, return
                if (DI::args()->get(DI::args()->getArgc() - 1) !== 'json') {