}
}
- 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 = [])
+ public function content(): string
{
self::checkAdminAccess(true);