diff options
| author | Greg Roach <fisharebest@gmail.com> | 2016-04-10 15:14:21 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2016-04-11 19:41:58 +0100 |
| commit | 4eb71cfaf9604652cd62536a0b3b56c6dfd715ad (patch) | |
| tree | df6374baef0b06b98ed2fdd84859d3c81f835325 /app/Module/FamilyTreeStatisticsModule.php | |
| parent | 168ff6f357afa9bbd5aa14c12670d19e51ee770c (diff) | |
| download | webtrees-4eb71cfaf9604652cd62536a0b3b56c6dfd715ad.tar.gz webtrees-4eb71cfaf9604652cd62536a0b3b56c6dfd715ad.tar.bz2 webtrees-4eb71cfaf9604652cd62536a0b3b56c6dfd715ad.zip | |
Charts as modules - more work
Diffstat (limited to 'app/Module/FamilyTreeStatisticsModule.php')
| -rw-r--r-- | app/Module/FamilyTreeStatisticsModule.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Module/FamilyTreeStatisticsModule.php b/app/Module/FamilyTreeStatisticsModule.php index 76ce7b9bd3..67a19980f9 100644 --- a/app/Module/FamilyTreeStatisticsModule.php +++ b/app/Module/FamilyTreeStatisticsModule.php @@ -20,6 +20,7 @@ use Fisharebest\Webtrees\Filter; use Fisharebest\Webtrees\Functions\FunctionsDb; use Fisharebest\Webtrees\Functions\FunctionsEdit; use Fisharebest\Webtrees\I18N; +use Fisharebest\Webtrees\Module; use Fisharebest\Webtrees\Stats; use Fisharebest\Webtrees\Theme; @@ -192,7 +193,7 @@ class FamilyTreeStatisticsModule extends AbstractModule implements ModuleBlockIn $content .= '</div>'; } $content .= '</div>'; - if ($stat_link) { + if ($stat_link && Module::isActiveChart($WT_TREE, 'statistics_chart')) { $content .= '<div class="clearfloat"><a href="statistics.php?ged=' . $WT_TREE->getNameUrl() . '" rel="nofollow"><b>' . I18N::translate('View statistics as graphs') . '</b></a></div>'; } |
