Skip to content

Commit

Permalink
Compatible with flarum core 9
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBelgium committed Jul 5, 2019
1 parent 177f5ee commit 1c776f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion src/Migrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1c776f6

Please sign in to comment.