1
0
mirror of https://github.com/flarum/core.git synced 2025-07-22 01:01:28 +02:00

Change migration namespace format

This commit is contained in:
Toby Zerner
2015-10-02 17:49:43 +09:30
parent 60467540fe
commit 91aab4cd21

View File

@@ -246,7 +246,7 @@ class Migrator
{ {
$file = implode('_', array_slice(explode('_', $file), 4)); $file = implode('_', array_slice(explode('_', $file), 4));
$class = 'Flarum\\Migrations\\' . ($extension ? Str::studly($extension) : 'Core') . '\\'; $class = ($extension ? str_replace('-', '\\', $extension) : 'Core') . '\\Migrations\\';
$class .= Str::studly($file); $class .= Str::studly($file);