]> git.mxchange.org Git - friendica.git/blobdiff - src/BaseModule.php
Update function / rearrange tab order
[friendica.git] / src / BaseModule.php
index 11f884472e65c448c774d6b8f1576ef986903bac..619095dfb6fbaf019c669c309cc07c6fece29ec9 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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');