diff options
| author | Greg Roach <fisharebest@gmail.com> | 2015-03-08 17:09:41 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2015-03-09 00:08:53 +0000 |
| commit | 24ec66ce7e77188cd2495b0f8d4dd0ae6e8c9c52 (patch) | |
| tree | 0059c30afd4b78da23f28067165a7b17415924d8 /app/Module/TopSurnamesModule.php | |
| parent | 3763c3f2dff6a4360b7b8810b6250e372dded805 (diff) | |
| download | webtrees-24ec66ce7e77188cd2495b0f8d4dd0ae6e8c9c52.tar.gz webtrees-24ec66ce7e77188cd2495b0f8d4dd0ae6e8c9c52.tar.bz2 webtrees-24ec66ce7e77188cd2495b0f8d4dd0ae6e8c9c52.zip | |
Use Tree object instead of ID/name
Diffstat (limited to 'app/Module/TopSurnamesModule.php')
| -rw-r--r-- | app/Module/TopSurnamesModule.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Module/TopSurnamesModule.php b/app/Module/TopSurnamesModule.php index 0de0b21ef1..904e7d0448 100644 --- a/app/Module/TopSurnamesModule.php +++ b/app/Module/TopSurnamesModule.php @@ -50,7 +50,7 @@ class TopSurnamesModule extends Module implements ModuleBlockInterface { } // This next function is a bit out of date, and doesn't cope well with surname variants - $top_surnames = get_top_surnames(WT_GED_ID, $COMMON_NAMES_THRESHOLD, $num); + $top_surnames = get_top_surnames($WT_TREE->getTreeId(), $COMMON_NAMES_THRESHOLD, $num); // Remove names found in the "Remove Names" list if ($COMMON_NAMES_REMOVE) { @@ -63,7 +63,7 @@ class TopSurnamesModule extends Module implements ModuleBlockInterface { $all_surnames = array(); $i = 0; foreach (array_keys($top_surnames) as $top_surname) { - $all_surnames = array_merge($all_surnames, QueryName::surnames($top_surname, '', false, false, WT_GED_ID)); + $all_surnames = array_merge($all_surnames, QueryName::surnames($top_surname, '', false, false, $WT_TREE->getTreeId())); if (++$i == $num) { break; } |
