From 31d70e02e0e3c7f5b0329904cac0eb020f5164f1 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 8 May 2021 14:23:47 +0200 Subject: [PATCH] Update src/Module/BaseApi.php Co-authored-by: Hypolite Petovan --- src/Module/BaseApi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/BaseApi.php b/src/Module/BaseApi.php index f6146ac56a..c3f11b0eb9 100644 --- a/src/Module/BaseApi.php +++ b/src/Module/BaseApi.php @@ -111,7 +111,7 @@ class BaseApi extends BaseModule { $path = DI::args()->getQueryString(); Logger::info('Unimplemented API call', ['path' => $path, 'method' => $method]); - $error = DI::l10n()->t('API endpoint %s "%s" is not implemented', $method, $path); + $error = DI::l10n()->t('API endpoint %s %s is not implemented', strtoupper($method), $path); $error_description = DI::l10n()->t('The API endpoint is currently not implemented but might be in the future.');; $errorobj = new \Friendica\Object\Api\Mastodon\Error($error, $error_description); System::jsonError(501, $errorobj->toArray());