Use Core helper for checking installation status

pull/21/head^2
Franz Liedke 2015-09-03 08:02:26 +02:00
parent c214d47ccf
commit 680e8b53d6
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ $app = require __DIR__.'/flarum/bootstrap.php';
// If Flarum's configuration exists, then we can assume that installation has
// been completed. We will set up a middleware pipe to route the request through
// to one of the main forum actions.
if ($app->bound('flarum.config')) {
if (Core::isInstalled()) {
$app->register('Flarum\Forum\ForumServiceProvider');
$flarum = new MiddlewarePipe();