diff --git a/.gitignore b/.gitignore index 84c86314..0866bf94 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ /app/cache/**/*.lock /app/cache/**/*.tmp /app/log/* +/ext/* /public/img/avatars/* /public/img/og/* /public/.htaccess diff --git a/app/Models/Pages/Admin/Update.php b/app/Models/Pages/Admin/Update.php index 778c73a4..00e1c28b 100644 --- a/app/Models/Pages/Admin/Update.php +++ b/app/Models/Pages/Admin/Update.php @@ -921,4 +921,22 @@ class Update extends Admin 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; + } } diff --git a/app/config/main.dist.php b/app/config/main.dist.php index 6a1dbfa8..54db0254 100644 --- a/app/config/main.dist.php +++ b/app/config/main.dist.php @@ -84,6 +84,7 @@ return [ '%DIR_LANG%' => '%DIR_APP%/lang', '%DIR_LOG%' => '%DIR_APP%/log', '%DIR_VIEWS%' => '%DIR_APP%/templates', + '%DIR_EXT%' => '%DIR_ROOT%/ext', 'DB' => [ 'class' => \ForkBB\Core\DB::class, diff --git a/ext/.gitkeep b/ext/.gitkeep new file mode 100644 index 00000000..e69de29b