]> git.mxchange.org Git - friendica.git/blobdiff - src/BaseModule.php
Apply suggestions from code review
[friendica.git] / src / BaseModule.php
index d9c7da97a7b8d3c6b30a97f682d51f1598aaf34e..619095dfb6fbaf019c669c309cc07c6fece29ec9 100644 (file)
@@ -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');