Skip to content

Commit

Permalink
Updated against webtrees v2.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
miqrogroove committed Oct 14, 2020
1 parent 90d14d6 commit 4e192f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions TreeHomePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function __construct(TreeService $tree_service)
{
$this->tree_service = $tree_service;
}

/**
* @param ServerRequestInterface $request
*
Expand All @@ -72,13 +72,13 @@ public function handle(ServerRequestInterface $request): ResponseInterface

if ($tree instanceof Tree) {
if ($tree->getPreference('imported') === '1') {
// HomePage class hacked right here.
// Do not use the UserPage as a HomePage.
// HomePage class hacked right here.
// Do not use the UserPage as a HomePage.
return redirect(route(TreePage::class, ['tree' => $tree->name()]));
}

if (Auth::isManager($tree, $user)) {
return redirect(route('manage-trees', ['tree' => $tree->name()]));
return redirect(route(ManageTrees::class, ['tree' => $tree->name()]));
}
}

Expand Down
2 changes: 1 addition & 1 deletion module.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function customModuleAuthorName(): string
*/
public function customModuleVersion(): string
{
return '1.0.00';
return '1.0.01';
}

/**
Expand Down

0 comments on commit 4e192f2

Please sign in to comment.