Permalink
Browse files

Sidebar- and tabcontent must be restricted to Indivdual. Following we…

…btrees base.
  • Loading branch information...
JustCarmen committed May 20, 2018
1 parent 63f4191 commit d0f8d0fbb7bae64b148c1faca01fa5da3b41521b
Showing with 3 additions and 2 deletions.
  1. +3 −2 module.php
View
@@ -22,6 +22,7 @@
use Fisharebest\Webtrees\Filter;
use Fisharebest\Webtrees\Html;
use Fisharebest\Webtrees\I18N;
use Fisharebest\Webtrees\Individual;
use Fisharebest\Webtrees\Log;
use Fisharebest\Webtrees\Module\AbstractModule;
use Fisharebest\Webtrees\Module\ModuleConfigInterface;
@@ -115,7 +116,7 @@ public function defaultSidebarOrder() {
}
// Implement WT_Module_Sidebar
public function hasSidebarContent() {
public function hasSidebarContent(Individual $individual) {
return true;
}
@@ -125,7 +126,7 @@ public function getSidebarAjaxContent() {
}
// Implement WT_Module_Sidebar
public function getSidebarContent() {
public function getSidebarContent(Individual $individual) {
// code based on similar in function_print_list.php
global $controller;

0 comments on commit d0f8d0f

Please sign in to comment.