mirror of
https://github.com/flarum/core.git
synced 2025-08-20 23:31:27 +02:00
Fix installation
This commit is contained in:
@@ -310,10 +310,8 @@ class InstallCommand extends Command
|
||||
|
||||
$migrator = $extensions->getMigrator();
|
||||
|
||||
foreach ($extensions->getInfo() as $extension) {
|
||||
$name = $extension->name;
|
||||
|
||||
if ($name === 'pusher') {
|
||||
foreach ($extensions->getInfo() as $name => $extension) {
|
||||
if ($name === 'flarum-pusher') {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -329,7 +327,7 @@ class InstallCommand extends Command
|
||||
|
||||
protected function getConfigFile()
|
||||
{
|
||||
return base_path('../config.php');
|
||||
return base_path('config.php');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -246,7 +246,7 @@ class Migrator
|
||||
{
|
||||
$file = implode('_', array_slice(explode('_', $file), 4));
|
||||
|
||||
$class = ($extension ? str_replace('-', '\\', $extension) : 'Core') . '\\Migrations\\';
|
||||
$class = ($extension ? str_replace('-', '\\', $extension) : 'Flarum\\Core') . '\\Migrations\\';
|
||||
|
||||
$class .= Str::studly($file);
|
||||
|
||||
|
Reference in New Issue
Block a user