From 1c776f672a221a7d2d1eb4221af3128bae3a6ead Mon Sep 17 00:00:00 2001 From: Michael V Date: Fri, 5 Jul 2019 16:37:22 +0200 Subject: [PATCH] Compatible with flarum core 9 --- composer.json | 2 +- src/Migrator.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 57fb82b..f0aef68 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "Migrate a MyBB Forum to a fresh Flarum instance", "type": "flarum-extension", "require": { - "flarum/core": "^0.1.0-beta.8" + "flarum/core": "^0.1.0-beta.9" }, "license": "MIT", "authors": [ diff --git a/src/Migrator.php b/src/Migrator.php index 1aa1d3d..14e885d 100644 --- a/src/Migrator.php +++ b/src/Migrator.php @@ -159,7 +159,7 @@ public function migrateCategories() { if(!empty($row->linkto)) continue; //forums with links are not supported in flarum - $tag = Tag::build($row->name, $this->slugTag($row->name), $row->description, $this->generateRandomColor(), false); + $tag = Tag::build($row->name, $this->slugTag($row->name), $row->description, $this->generateRandomColor(), null, false); $tag->id = $row->fid; $tag->position = (int)$row->disporder - 1;