Update config files

This commit is contained in:
Visman 2023-09-20 20:56:26 +07:00
parent 4d096d5786
commit 1a13f93722
3 changed files with 36 additions and 6 deletions

View file

@ -893,4 +893,28 @@ class Update extends Admin
return null; return null;
} }
/**
* rev.68 to rev.69
*/
protected function stageNumber68(array $args): ?int
{
$coreConfig = new CoreConfig($this->configFile);
$coreConfig->add(
'shared=>View',
[
'class' => '\\ForkBB\\Core\\View::class',
'config' => [
'cache' => '\'%DIR_CACHE%\'',
'defaultDir' => '\'%DIR_VIEWS%/_default\'',
'userDir' => '\'%DIR_VIEWS%/_user\'',
],
]
);
$coreConfig->save();
return null;
}
} }

View file

@ -101,9 +101,12 @@ return [
], ],
'Validator' => \ForkBB\Core\Validator::class, 'Validator' => \ForkBB\Core\Validator::class,
'View' => [ 'View' => [
'class' => \ForkBB\Core\View::class, 'class' => \ForkBB\Core\View::class,
'cache_dir' => '%DIR_CACHE%', 'config' => [
'views_dir' => '%DIR_VIEWS%', 'cache' => '%DIR_CACHE%',
'defaultDir' => '%DIR_VIEWS%/_default',
'userDir' => '%DIR_VIEWS%/_user',
],
], ],
'Router' => [ 'Router' => [
'class' => \ForkBB\Core\Router::class, 'class' => \ForkBB\Core\Router::class,

View file

@ -104,9 +104,12 @@ return [
], ],
'Validator' => \ForkBB\Core\Validator::class, 'Validator' => \ForkBB\Core\Validator::class,
'View' => [ 'View' => [
'class' => \ForkBB\Core\View::class, 'class' => \ForkBB\Core\View::class,
'cache_dir' => '%DIR_CACHE%', 'config' => [
'views_dir' => '%DIR_VIEWS%', 'cache' => '%DIR_CACHE%',
'defaultDir' => '%DIR_VIEWS%/_default',
'userDir' => '%DIR_VIEWS%/_user',
],
], ],
'Router' => [ 'Router' => [
'class' => \ForkBB\Core\Router::class, 'class' => \ForkBB\Core\Router::class,