]> git.mxchange.org Git - friendica.git/blobdiff - mod/oexchange.php
Move L10n::t() calls to DI::l10n()->t() calls
[friendica.git] / mod / oexchange.php
index 751cb978843866e3312a4b53115d0ce6df99ff9c..d1b5523a42f373b4e05f9027e75318cf159a0770 100644 (file)
@@ -29,7 +29,7 @@ function oexchange_content(App $a) {
        }
 
        if (($a->argc > 1) && $a->argv[1] === 'done') {
-               info(L10n::t('Post successful.') . EOL);
+               info(DI::l10n()->t('Post successful.') . EOL);
                return;
        }
 
@@ -42,7 +42,7 @@ function oexchange_content(App $a) {
        $tags = ((!empty($_REQUEST['tags']))
                ? '&tags=' . urlencode(Strings::escapeTags(trim($_REQUEST['tags']))) : '');
 
-       $s = Network::fetchUrl(DI::baseUrl() . '/parse_url?f=&url=' . $url . $title . $description . $tags);
+       $s = Network::fetchUrl(DI::baseUrl() . '/parse_url?url=' . $url . $title . $description . $tags);
 
        if (!strlen($s)) {
                return;