diff options
| author | Greg Roach <fisharebest@gmail.com> | 2015-02-05 17:40:29 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2015-02-05 17:40:29 +0000 |
| commit | 5d51864bac06ba548eaf7222649e32ec5772d7ce (patch) | |
| tree | 41344cc0645e6e8b91967b0f7f13297bc8fdf284 /modules_v3/googlemap | |
| parent | 1b00dc40f047cc48fc07766c3e8205941fbd5078 (diff) | |
| download | webtrees-5d51864bac06ba548eaf7222649e32ec5772d7ce.tar.gz webtrees-5d51864bac06ba548eaf7222649e32ec5772d7ce.tar.bz2 webtrees-5d51864bac06ba548eaf7222649e32ec5772d7ce.zip | |
Replace globals with tree properties
Diffstat (limited to 'modules_v3/googlemap')
| -rw-r--r-- | modules_v3/googlemap/module.php | 4 |
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'); |
