]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/WellKnown/HostMeta.php
Move mod/like to src/Module/Like
[friendica.git] / src / Module / WellKnown / HostMeta.php
index 282781adf2c9c74390fbb0fc915317393fe23418..fd04467f7536816a50f3c93e21d4dc99f66062f3 100644 (file)
@@ -15,27 +15,25 @@ class HostMeta extends BaseModule
 {
        public static function rawContent()
        {
-               parent::rawContent();
-
                $app = self::getApp();
                $config = $app->getConfig();
 
-               header("Content-type: text/xml");
+               header('Content-type: text/xml');
 
                if (!$config->get('system', 'site_pubkey', false)) {
                        $res = Crypto::newKeypair(1024);
 
-                       $config->set('system','site_prvkey', $res['prvkey']);
-                       $config->set('system','site_pubkey', $res['pubkey']);
+                       $config->set('system', 'site_prvkey', $res['prvkey']);
+                       $config->set('system', 'site_pubkey', $res['pubkey']);
                }
 
                $tpl = Renderer::getMarkupTemplate('xrd_host.tpl');
                echo Renderer::replaceMacros($tpl, [
-                               '$zhost' => $app->getHostName(),
-                               '$zroot' => $app->getBaseURL(),
-                               '$domain' => $app->getBaseURL(),
-                               '$bigkey' => Salmon::salmonKey($config->get('system', 'site_pubkey'))]
-               );
+                       '$zhost'  => $app->getHostName(),
+                       '$zroot'  => $app->getBaseURL(),
+                       '$domain' => $app->getBaseURL(),
+                       '$bigkey' => Salmon::salmonKey($config->get('system', 'site_pubkey'))
+               ]);
 
                exit();
        }