Add folder for extensions

This commit is contained in:
Visman 2023-10-12 21:07:21 +07:00
parent 16d62d4bc2
commit 2cd5513c48
4 changed files with 20 additions and 0 deletions

1
.gitignore vendored
View file

@ -7,6 +7,7 @@
/app/cache/**/*.lock /app/cache/**/*.lock
/app/cache/**/*.tmp /app/cache/**/*.tmp
/app/log/* /app/log/*
/ext/*
/public/img/avatars/* /public/img/avatars/*
/public/img/og/* /public/img/og/*
/public/.htaccess /public/.htaccess

View file

@ -921,4 +921,22 @@ class Update extends Admin
return null; return null;
} }
/**
* rev.69 to rev.70
*/
protected function stageNumber69(array $args): ?int
{
$coreConfig = new CoreConfig($this->configFile);
$coreConfig->add(
'shared=>%DIR_EXT%',
'\'%DIR_ROOT%/ext\'',
'%DIR_VIEWS%'
);
$coreConfig->save();
return null;
}
} }

View file

@ -84,6 +84,7 @@ return [
'%DIR_LANG%' => '%DIR_APP%/lang', '%DIR_LANG%' => '%DIR_APP%/lang',
'%DIR_LOG%' => '%DIR_APP%/log', '%DIR_LOG%' => '%DIR_APP%/log',
'%DIR_VIEWS%' => '%DIR_APP%/templates', '%DIR_VIEWS%' => '%DIR_APP%/templates',
'%DIR_EXT%' => '%DIR_ROOT%/ext',
'DB' => [ 'DB' => [
'class' => \ForkBB\Core\DB::class, 'class' => \ForkBB\Core\DB::class,

0
ext/.gitkeep Normal file
View file