diff --git a/src/App/BaseURL.php b/src/App/BaseURL.php index 7e1ab1c2b9..a7bfce2b18 100644 --- a/src/App/BaseURL.php +++ b/src/App/BaseURL.php @@ -232,7 +232,7 @@ class BaseURL { $parsed = @parse_url($url); - if (empty($parsed)) { + if (empty($parsed) || empty($parsed['host'])) { return false; } diff --git a/src/Core/Console.php b/src/Core/Console.php index 56a294062b..d1374a1b8f 100644 --- a/src/Core/Console.php +++ b/src/Core/Console.php @@ -172,6 +172,8 @@ HELP; Friendica\DI::init($this->dice); + Renderer::registerTemplateEngine('Friendica\Render\FriendicaSmartyEngine'); + /** @var Console $subconsole */ $subconsole = $this->dice->create($className, [$subargs]); diff --git a/src/Database/DBStructure.php b/src/Database/DBStructure.php index 9af6100a0a..4779487283 100644 --- a/src/Database/DBStructure.php +++ b/src/Database/DBStructure.php @@ -162,8 +162,6 @@ class DBStructure public static function writeStructure() { - Renderer::registerTemplateEngine('Friendica\Render\FriendicaSmartyEngine'); - $tables = []; foreach (self::definition(null) as $name => $definition) { $indexes = [[