Use X-REQUEST-ID for Error pages

This commit is contained in:
Philipp
2022-12-26 21:17:32 +01:00
parent 5584e7a4e5
commit 4f1bb0d274
55 changed files with 218 additions and 130 deletions

View File

@@ -22,13 +22,12 @@
namespace Friendica\Module\HTTPException;
use Friendica\BaseModule;
use Friendica\DI;
use Friendica\Network\HTTPException;
class MethodNotAllowed extends BaseModule
{
protected function content(array $request = []): string
{
throw new HTTPException\MethodNotAllowedException(DI::l10n()->t('Method Not Allowed.'));
throw new HTTPException\MethodNotAllowedException($this->t('Method Not Allowed.'));
}
}