]> git.mxchange.org Git - friendica.git/blobdiff - mod/api.php
Fix fatal error because of unknown function "fetchUrl"
[friendica.git] / mod / api.php
index 47a809497ed03d636ee5e129b515fdcbaec555ad..474d57af4a84a738a0aa3b4f636136eaaba3554b 100644 (file)
@@ -47,12 +47,12 @@ function oauth_get_client(OAuthRequest $request)
 function api_post(App $a)
 {
        if (!local_user()) {
-               notice(DI::l10n()->t('Permission denied.') . EOL);
+               notice(DI::l10n()->t('Permission denied.'));
                return;
        }
 
        if (count($a->user) && !empty($a->user['uid']) && $a->user['uid'] != local_user()) {
-               notice(DI::l10n()->t('Permission denied.') . EOL);
+               notice(DI::l10n()->t('Permission denied.'));
                return;
        }
 }
@@ -107,7 +107,7 @@ function api_content(App $a)
 
                if (!local_user()) {
                        /// @TODO We need login form to redirect to this page
-                       notice(DI::l10n()->t('Please login to continue.') . EOL);
+                       notice(DI::l10n()->t('Please login to continue.'));
                        return Login::form(DI::args()->getQueryString(), false, $request->get_parameters());
                }
                //FKOAuth1::loginUser(4);