From: Philipp Date: Sun, 27 Nov 2022 00:27:44 +0000 (+0100) Subject: Be more kindly :-) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e6933a28daac3bf58859447dfd06c4ea7f825e96;p=friendica.git Be more kindly :-) --- diff --git a/src/Module/Media/Attachment/Browser.php b/src/Module/Media/Attachment/Browser.php index 021859c021..50e0b7f803 100644 --- a/src/Module/Media/Attachment/Browser.php +++ b/src/Module/Media/Attachment/Browser.php @@ -55,7 +55,7 @@ class Browser extends BaseModule protected function content(array $request = []): string { if (!$this->session->getLocalUserId()) { - throw new UnauthorizedException($this->t('Permission denied.')); + throw new UnauthorizedException($this->t('You need to be logged in to access this page.')); } // Needed to match the correct template in a module that uses a different theme than the user/site/default diff --git a/src/Module/Media/Photo/Browser.php b/src/Module/Media/Photo/Browser.php index 48f4b3a96b..76b9db3a51 100644 --- a/src/Module/Media/Photo/Browser.php +++ b/src/Module/Media/Photo/Browser.php @@ -56,7 +56,7 @@ class Browser extends BaseModule protected function content(array $request = []): string { if (!$this->session->getLocalUserId()) { - throw new UnauthorizedException($this->t('Permission denied.')); + throw new UnauthorizedException($this->t('You need to be logged in to access this page.')); } // Needed to match the correct template in a module that uses a different theme than the user/site/default