mirror of
https://github.com/friendica/friendica
synced 2024-11-19 09:03:42 +00:00
Issue 10392: Avoid "Friendica can't display this page at the moment"
This commit is contained in:
parent
9039d812f1
commit
ae5f57233e
3 changed files with 3 additions and 3 deletions
|
@ -232,7 +232,7 @@ class BaseURL
|
||||||
{
|
{
|
||||||
$parsed = @parse_url($url);
|
$parsed = @parse_url($url);
|
||||||
|
|
||||||
if (empty($parsed)) {
|
if (empty($parsed) || empty($parsed['host'])) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -172,6 +172,8 @@ HELP;
|
||||||
|
|
||||||
Friendica\DI::init($this->dice);
|
Friendica\DI::init($this->dice);
|
||||||
|
|
||||||
|
Renderer::registerTemplateEngine('Friendica\Render\FriendicaSmartyEngine');
|
||||||
|
|
||||||
/** @var Console $subconsole */
|
/** @var Console $subconsole */
|
||||||
$subconsole = $this->dice->create($className, [$subargs]);
|
$subconsole = $this->dice->create($className, [$subargs]);
|
||||||
|
|
||||||
|
|
|
@ -162,8 +162,6 @@ class DBStructure
|
||||||
|
|
||||||
public static function writeStructure()
|
public static function writeStructure()
|
||||||
{
|
{
|
||||||
Renderer::registerTemplateEngine('Friendica\Render\FriendicaSmartyEngine');
|
|
||||||
|
|
||||||
$tables = [];
|
$tables = [];
|
||||||
foreach (self::definition(null) as $name => $definition) {
|
foreach (self::definition(null) as $name => $definition) {
|
||||||
$indexes = [[
|
$indexes = [[
|
||||||
|
|
Loading…
Reference in a new issue