]> git.mxchange.org Git - friendica.git/blobdiff - mod/hcard.php
typo
[friendica.git] / mod / hcard.php
index 87f5ef3207be5e53740046ea4af71a65d2146524..07c551ebdb8402bf89f0e1b5afbac3b2296c1172 100644 (file)
@@ -4,6 +4,7 @@
  */
 use Friendica\App;
 use Friendica\Core\Config;
+use Friendica\Core\L10n;
 use Friendica\Core\System;
 use Friendica\Model\Profile;
 
@@ -14,7 +15,7 @@ function hcard_init(App $a)
        if ($a->argc > 1) {
                $which = $a->argv[1];
        } else {
-               notice(t('No profile') . EOL);
+               notice(L10n::t('No profile') . EOL);
                $a->error = 404;
                return;
        }
@@ -40,7 +41,7 @@ function hcard_init(App $a)
 
        if (!$blocked) {
                $keywords = ((x($a->profile, 'pub_keywords')) ? $a->profile['pub_keywords'] : '');
-               $keywords = str_replace(array(',',' ',',,'), array(' ',',',','), $keywords);
+               $keywords = str_replace([',',' ',',,'], [' ',',',','], $keywords);
                if (strlen($keywords)) {
                        $a->page['htmlhead'] .= '<meta name="keywords" content="' . $keywords . '" />' . "\r\n" ;
                }
@@ -52,7 +53,7 @@ function hcard_init(App $a)
        $a->page['htmlhead'] .= '<link rel="lrdd" type="application/xrd+xml" href="' . System::baseUrl() . '/xrd/?uri=' . $uri . '" />' . "\r\n";
        header('Link: <' . System::baseUrl() . '/xrd/?uri=' . $uri . '>; rel="lrdd"; type="application/xrd+xml"', false);
 
-       $dfrn_pages = array('request', 'confirm', 'notify', 'poll');
+       $dfrn_pages = ['request', 'confirm', 'notify', 'poll'];
        foreach ($dfrn_pages as $dfrn) {
                $a->page['htmlhead'] .= "<link rel=\"dfrn-{$dfrn}\" href=\"".System::baseUrl()."/dfrn_{$dfrn}/{$which}\" />\r\n";
        }