]> git.mxchange.org Git - friendica.git/commitdiff
Issue 10392: Avoid "Friendica can't display this page at the moment"
authorMichael <heluecht@pirati.ca>
Wed, 16 Jun 2021 13:23:07 +0000 (13:23 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 16 Jun 2021 13:23:07 +0000 (13:23 +0000)
src/App/BaseURL.php
src/Core/Console.php
src/Database/DBStructure.php

index 7e1ab1c2b9a3418cf37917d1f89d3a3f9345c405..a7bfce2b1875c7ac99dd1ae1cf93605d01f9be4e 100644 (file)
@@ -232,7 +232,7 @@ class BaseURL
        {
                $parsed = @parse_url($url);
 
-               if (empty($parsed)) {
+               if (empty($parsed) || empty($parsed['host'])) {
                        return false;
                }
 
index 56a294062b0cae1a24dbc391915a2e343450120f..d1374a1b8fab1b71ebe944b85783188e23194051 100644 (file)
@@ -172,6 +172,8 @@ HELP;
 
                Friendica\DI::init($this->dice);
 
+               Renderer::registerTemplateEngine('Friendica\Render\FriendicaSmartyEngine');
+
                /** @var Console $subconsole */
                $subconsole = $this->dice->create($className, [$subargs]);
 
index 9af6100a0ac319b37992f967f6d5acbb9b3ca131..4779487283a169535153c34b9b743615f2f4b298 100644 (file)
@@ -162,8 +162,6 @@ class DBStructure
 
        public static function writeStructure()
        {
-               Renderer::registerTemplateEngine('Friendica\Render\FriendicaSmartyEngine');
-
                $tables = [];
                foreach (self::definition(null) as $name => $definition) {
                        $indexes  = [[