]> git.mxchange.org Git - friendica.git/blobdiff - mod/hostxrd.php
Improve Console/Config display for array values
[friendica.git] / mod / hostxrd.php
index a38d3ab61f6bac663338c03cbc0e54a212651427..16f132fe092ff2a871fcc3a0e15fe67cffbe84c6 100644 (file)
@@ -5,6 +5,7 @@
 use Friendica\App;
 use Friendica\Core\Config;
 use Friendica\Core\System;
+use Friendica\Protocol\Salmon;
 use Friendica\Util\Crypto;
 
 function hostxrd_init(App $a)
@@ -21,11 +22,11 @@ function hostxrd_init(App $a)
        }
 
        $tpl = get_markup_template('xrd_host.tpl');
-       echo replace_macros($tpl, array(
+       echo replace_macros($tpl, [
                '$zhost' => $a->get_hostname(),
                '$zroot' => System::baseUrl(),
                '$domain' => System::baseUrl(),
-               '$bigkey' => Crypto::salmonKey(Config::get('system', 'site_pubkey')))
+               '$bigkey' => Salmon::salmonKey(Config::get('system', 'site_pubkey'))]
        );
 
        exit();