summaryrefslogtreecommitdiff
path: root/modules_v3/googlemap
diff options
context:
space:
mode:
Diffstat (limited to 'modules_v3/googlemap')
-rw-r--r--modules_v3/googlemap/module.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules_v3/googlemap/module.php b/modules_v3/googlemap/module.php
index 0b7705b3a5..e29491a1c7 100644
--- a/modules_v3/googlemap/module.php
+++ b/modules_v3/googlemap/module.php
@@ -722,7 +722,9 @@ class googlemap_WT_Module extends Module implements ModuleConfigInterface, Modul
* ...
*/
private function pedigreeMap() {
- global $controller, $MAX_PEDIGREE_GENERATIONS;
+ global $controller, $WT_TREE;
+
+ $MAX_PEDIGREE_GENERATIONS = $WT_TREE->getPreference('MAX_PEDIGREE_GENERATIONS');
// Default is show for both of these.
$hideflags = Filter::getBool('hideflags');