}
}
- if (!is_site_admin()) {
+ if (!DI::app()->isSiteAdmin()) {
throw new HTTPException\ForbiddenException(DI::l10n()->t('You don\'t have access to administration pages.'));
}
}
}
- public static function content(array $parameters = [])
+ protected function content(array $request = []): string
{
self::checkAdminAccess(true);