Fix config engine

This commit is contained in:
Visman 2022-01-13 21:09:00 +07:00
parent c0f9f64ff4
commit 0b026d4be3
3 changed files with 19 additions and 2 deletions

View file

@ -630,4 +630,21 @@ class Update extends Admin
return null;
}
/**
* rev.46 to rev.47
*/
protected function stageNumber46(array $args): ?int
{
$coreConfig = new CoreConfig($this->configFile);
$coreConfig->add(
'shared=>Mail=>ssl',
'\'%config.b_smtp_ssl%\''
);
$coreConfig->save();
return null;
}
}

View file

@ -58,7 +58,7 @@ if (
}
$c->PUBLIC_URL = $c->BASE_URL . $forkPublicPrefix;
$c->FORK_REVISION = 46;
$c->FORK_REVISION = 47;
$c->START = $forkStart;
$c->DIR_APP = __DIR__;
$c->DIR_PUBLIC = \realpath(__DIR__ . '/../public');

View file

@ -102,7 +102,7 @@ return [
'host' => '%config.o_smtp_host%',
'user' => '%config.o_smtp_user%',
'pass' => '%config.o_smtp_pass%',
'ssl' => '%config.o_smtp_ssl%',
'ssl' => '%config.b_smtp_ssl%',
'eol' => '%EOL%',
],
'Func' => \ForkBB\Core\Func::class,