]> git.mxchange.org Git - friendica.git/commitdiff
Update src/Module/BaseApi.php
authorMichael Vogel <icarus@dabo.de>
Sat, 8 May 2021 12:23:47 +0000 (14:23 +0200)
committerGitHub <noreply@github.com>
Sat, 8 May 2021 12:23:47 +0000 (14:23 +0200)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Module/BaseApi.php

index f6146ac56a6ba1e110e0215343d7dd32d115eadc..c3f11b0eb939bf20893eec53d9895eed312a3f82 100644 (file)
@@ -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());