]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/HTTPException/MethodNotAllowed.php
Merge pull request #13599 from Raroun/Fix_for_Pull_Request_#13596_missing_a_hidden...
[friendica.git] / src / Module / HTTPException / MethodNotAllowed.php
index 07aab537a869d3faf1994db31ae826d9cbae9007..4a060c3599e31ddac59249683bab61fda3325621 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
 namespace Friendica\Module\HTTPException;
 
 use Friendica\BaseModule;
-use Friendica\DI;
 use Friendica\Network\HTTPException;
 
 class MethodNotAllowed extends BaseModule
 {
-       public function content(): string
+       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.'));
        }
 }