. */ namespace Fisharebest\Webtrees; use Fisharebest\Webtrees\Controller\AncestryController; use Fisharebest\Webtrees\Functions\FunctionsEdit; require 'includes/session.php'; $controller = new AncestryController; $controller->restrictAccess(Module::isActiveChart($controller->tree(), 'ancestors_chart')); // Only generate the content for interactive users (not search robots). if (Filter::getBool('ajax') && Session::has('initiated')) { echo $controller->getChart(); echo $controller->getJavascript(); return; } $controller ->addInlineJavascript('$(".wt-page-content").load(document.location + "&ajax=1");') ->pageHeader(); ?>