diff --git a/flarum b/flarum index a734661..5229c90 100644 --- a/flarum +++ b/flarum @@ -14,10 +14,7 @@ define('FLARUM_START', microtime(true)); require 'vendor/autoload.php'; $server = new Flarum\Console\Server( - Flarum\Foundation\Site::fromPaths([ - 'base' => __DIR__, - 'public' => __DIR__.'/public', - ]) + Flarum\Foundation\Site::fromDefaultBase(__DIR__) ); $server->listen(); diff --git a/public/index.php b/public/index.php index 431a239..94a2924 100644 --- a/public/index.php +++ b/public/index.php @@ -12,10 +12,7 @@ require '../vendor/autoload.php'; $server = new Flarum\Http\Server( - Flarum\Foundation\Site::fromPaths([ - 'base' => __DIR__.'/..', - 'public' => __DIR__, - ]) + Flarum\Foundation\Site::fromDefaultBase(__DIR__.'/..') ); $server->listen();