summaryrefslogtreecommitdiff
path: root/app/Module/FamilyTreeStatisticsModule.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Module/FamilyTreeStatisticsModule.php')
-rw-r--r--app/Module/FamilyTreeStatisticsModule.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Module/FamilyTreeStatisticsModule.php b/app/Module/FamilyTreeStatisticsModule.php
index 151b7987e5..76ce7b9bd3 100644
--- a/app/Module/FamilyTreeStatisticsModule.php
+++ b/app/Module/FamilyTreeStatisticsModule.php
@@ -191,6 +191,7 @@ class FamilyTreeStatisticsModule extends AbstractModule implements ModuleBlockIn
}
$content .= '</div>';
}
+ $content .= '</div>';
if ($stat_link) {
$content .= '<div class="clearfloat"><a href="statistics.php?ged=' . $WT_TREE->getNameUrl() . '" rel="nofollow"><b>' . I18N::translate('View statistics as graphs') . '</b></a></div>';
}
@@ -198,7 +199,7 @@ class FamilyTreeStatisticsModule extends AbstractModule implements ModuleBlockIn
if ($show_common_surnames) {
$surnames = FunctionsDb::getCommonSurnames($WT_TREE->getPreference('COMMON_NAMES_THRESHOLD'), $WT_TREE);
if (count($surnames) > 0) {
- $content .= '<p><b>' . I18N::translate('Most common surnames') . '</b></p>';
+ $content .= '<div class="clearfloat"><p><b>' . I18N::translate('Most common surnames') . '</b></p>';
$content .= '<div class="common_surnames">';
$i = 0;
foreach ($surnames as $indexval => $surname) {
@@ -213,7 +214,7 @@ class FamilyTreeStatisticsModule extends AbstractModule implements ModuleBlockIn
$content .= '</div>';
}
}
- $content .= '</div>';
+
if ($template) {
return Theme::theme()->formatBlock($id, $title, $class, $content);
} else {