X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FBaseModule.php;h=619095dfb6fbaf019c669c309cc07c6fece29ec9;hb=e659a0314086dd700dbe5e754e383ab758725805;hp=d9c7da97a7b8d3c6b30a97f682d51f1598aaf34e;hpb=1874a32728142f2c12724562eb122eb1cd1370fe;p=friendica.git diff --git a/src/BaseModule.php b/src/BaseModule.php index d9c7da97a7..619095dfb6 100644 --- a/src/BaseModule.php +++ b/src/BaseModule.php @@ -90,9 +90,9 @@ abstract class BaseModule implements ICanHandleRequests * * @see L10n::tt() */ - protected function tt(string $singular, string $plurarl, int $count): string + protected function tt(string $singular, string $plural, int $count): string { - return $this->l10n->tt($singular, $plurarl, $count); + return $this->l10n->tt($singular, $plural, $count); } /** @@ -251,6 +251,7 @@ abstract class BaseModule implements ICanHandleRequests throw $e; } + $this->response->setStatus($e->getCode(), $e->getMessage()); $this->response->addContent($httpException->content($e)); } finally { $this->profiler->set(microtime(true) - $timestamp, 'content');