*/
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.'));
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') {