Skip to content

Commit 5805f9b

Browse files
authored
Merge pull request #1665 from solracsf/fix/translatable-blocked-app-message
fix(whitelisting): Make the blocked app message translatable again
2 parents e7de1f3 + c1c32de commit 5805f9b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/AppWhitelist.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ public function verifyAccess(IUser $user, IRequest $request): void {
8383
if (!$this->isUrlAllowed($user, $url)) {
8484
header('HTTP/1.0 403 Forbidden');
8585
Template::printErrorPage($this->l10n->t(
86-
"Access to this resource ($app) is forbidden for guests."
86+
'Access to this resource (%s) is forbidden for guests.',
87+
[$app]
8788
));
8889
exit;
8990
}

0 commit comments

Comments
 (0)